Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 14, 2021
1 parent 1ffd279 commit 0aa7ed9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jdaviz/configs/mosviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from astropy.wcs import WCS
from glue.core.data import Data
from glue.core.link_helpers import LinkSame
from spectral_cube import SpectralCube
from specutils import Spectrum1D, SpectrumList, SpectrumCollection

from jdaviz.configs.imviz.plugins.parsers import get_image_data_iterator
Expand Down Expand Up @@ -284,8 +283,8 @@ def _parse_as_spectrum1d(path):

# Copy (if present) region to top-level meta object
if ('header' in data.meta and
'S_REGION' in data.meta['header'] and
'S_REGION' not in data.meta):
'S_REGION' in data.meta['header'] and
'S_REGION' not in data.meta):
data.meta['S_REGION'] = data.meta['header']['S_REGION']

# Set the instrument
Expand Down

0 comments on commit 0aa7ed9

Please sign in to comment.