Skip to content

Commit f53c556

Browse files
committed
Update 'mask' from Spectrum1D.mask if present
1 parent 1950d70 commit f53c556

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

glue_astronomy/translators/spectrum1d.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ def parse_attributes(attributes):
246246

247247
# Get mask if there is one defined, or if this is a subset
248248
if subset_state is None:
249-
mask = None
249+
if 'mask' in data.component_ids():
250+
mask = data['mask']
251+
else:
252+
mask = None
250253
else:
251254
mask = data.get_mask(subset_state=subset_state)
252255
mask = ~mask

0 commit comments

Comments
 (0)