Skip to content

Commit

Permalink
Update 'mask' from Spectrum1D.mask if present
Browse files Browse the repository at this point in the history
  • Loading branch information
dhomeier committed Feb 24, 2023
1 parent 1950d70 commit f53c556
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glue_astronomy/translators/spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ def parse_attributes(attributes):

# Get mask if there is one defined, or if this is a subset
if subset_state is None:
mask = None
if 'mask' in data.component_ids():
mask = data['mask']
else:
mask = None
else:
mask = data.get_mask(subset_state=subset_state)
mask = ~mask
Expand Down

0 comments on commit f53c556

Please sign in to comment.