Skip to content

Commit

Permalink
Fixed a typo in cropping range function
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sanchez committed Apr 22, 2024
1 parent c5634ff commit 654cd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetal_brain_utils/cropping.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_rectangular_masked_region(
ran = np.nonzero(sum_mask)[0]

low = np.max([0, ran[0]])
high = np.min([shape[0], ran[-1] + 1])
high = np.min([shape[i], ran[-1] + 1])
range_list.append(np.array([low, high]).astype(int))

return range_list

0 comments on commit 654cd09

Please sign in to comment.