Skip to content

Commit

Permalink
address more review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Aug 20, 2024
1 parent ddcbcd9 commit c3f6a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainglobe_template_builder/preproc/cropping.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def crop_to_mask(
mask == 0
), "The mask is invalid because it does not contain foreground."
# Find the bounding box of the mask
mask_indices = np.where(mask)
mask_indices = np.nonzero(mask)
min_z = np.min(mask_indices[0])
max_z = np.max(mask_indices[0])
min_y = np.min(mask_indices[1])
Expand Down

0 comments on commit c3f6a66

Please sign in to comment.