Skip to content

Commit

Permalink
Fixed bug in identify_medoid.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-nicodemus committed Jan 8, 2024
1 parent d306acb commit 3e90e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cajal/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def identify_medoid(
Identify the medoid cell in cell_names.
"""
return cell_names[
np.argmin(squareform(dist_mat_of_dict(gw_dist_dict, cell_names)).sum(axis=0))
np.argmin(dist_mat_of_dict(gw_dist_dict, cell_names, as_squareform=True).sum(axis=0))
]


Expand Down

0 comments on commit 3e90e9c

Please sign in to comment.