Skip to content

Commit

Permalink
Update nibabies/utils/viz.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Madison <[email protected]>
  • Loading branch information
mgxd and madisoth authored May 5, 2022
1 parent c67359c commit 0684205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabies/utils/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _carpet(
for i in np.unique(seg):
roi_mask = seg == i
roi = data[roi_mask]
if sort_rows.lower() == "linkage":
if isinstance(sort_rows, str) and sort_rows.lower() == "linkage":
linkage_matrix = linkage(
roi, method="average", metric="euclidean", optimal_ordering=True
)
Expand Down

0 comments on commit 0684205

Please sign in to comment.