Skip to content

Commit

Permalink
Fix mask comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Nov 30, 2022
1 parent 9e08b79 commit 4d97ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specreduce/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _parse_image(self, image, disp_axis=1):
mask = image.mask
else:
mask = np.ma.masked_invalid(img).mask
if not mask: # Could be False
if mask is False: # Could be False
mask = None

if getattr(image, 'uncertainty', None) is not None:
Expand Down

0 comments on commit 4d97ebd

Please sign in to comment.