Skip to content

Commit

Permalink
Cherry pick from astropy#151
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 2, 2022
1 parent 659de90 commit d0cb125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specreduce/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def _parse_image(self, image, disp_axis=1):
mask = image.mask
else:
mask = np.ma.masked_invalid(img).mask
if mask is False: # Could be False
mask = None

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

0 comments on commit d0cb125

Please sign in to comment.