Skip to content

Commit

Permalink
Merge pull request #1211 from araikes/T1w-typo
Browse files Browse the repository at this point in the history
FIX: Typo in sorted(..., reverse=True) call
  • Loading branch information
effigies committed Mar 20, 2024
2 parents 14c7810 + 7611521 commit 6b9a821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mriqc/workflows/anatomical/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def gradient_threshold(in_file, brainmask, thresh=15.0, out_file=None, aniso=Fal
artmsk = np.zeros_like(mask)
if nb_labels > 2:
sizes = sim.sum(mask, label_im, list(range(nb_labels + 1)))
ordered = sorted(zip(sizes, list(range(nb_labels + 1))), reversed=True)
ordered = sorted(zip(sizes, list(range(nb_labels + 1))), reverse=True)
for _, label in ordered[2:]:
mask[label_im == label] = 0
artmsk[label_im == label] = 1
Expand Down

0 comments on commit 6b9a821

Please sign in to comment.