Skip to content

Commit

Permalink
Fix extraneous-parentheses (UP034) issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Mar 15, 2024
1 parent 6854887 commit 0dba7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantidimaging/core/operations/crop_coords/crop_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def filter_func(images: ImageStack,

sample = images.data
shape = (sample.shape[0], region_of_interest.height, region_of_interest.width)
if any((s < 0 for s in shape)):
if any(s < 0 for s in shape):
raise ValueError("It seems the Region of Interest is outside of the current image dimensions.\n"
"This can happen on the image preview right after a previous Crop Coordinates.")

Expand Down

0 comments on commit 0dba7c2

Please sign in to comment.