Skip to content

Commit

Permalink
Fix code style and residual references to SpectralCube
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 14, 2021
1 parent 6aabc15 commit 1cc55d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/mosviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ The :guilabel:`Remove` button can be used to remove a slit once it has been appl
In order to plot a slit onto the image viewer, we need WCS information from an image and slit position from a 2D spectrum.
WCS information is taken from the `meta` attribute of the :class:`~astropy.nddata.CCDData` object representing the data in the
image viewer. The slit position is calculated using the `S_REGION` header extension value, located in the `meta` attribute of
the :class:`~spectral_cube.SpectralCube` object that is active in the 2D spectrum viewer.
the :class:`~specutils.Spectrum1D` object that is active in the 2D spectrum viewer.
2 changes: 1 addition & 1 deletion jdaviz/configs/mosviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def mos_niriss_parser(app, data_dir, obs_label=""):
sci_hdus.append(i)
wav_hdus[i] = ('WAVELENGTH', temp[i].header['EXTVER'])

# Now get a SpectralCube object for each SCI HDU
# Now get a Spectrum1D object for each SCI HDU
for sci in sci_hdus:

if temp[sci].header["SPORDER"] == 1:
Expand Down
1 change: 0 additions & 1 deletion jdaviz/configs/mosviz/tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from astropy.nddata import CCDData
from astropy.wcs import WCS
from jdaviz.configs.mosviz.helper import Mosviz
from spectral_cube import SpectralCube
from specutils import Spectrum1D, SpectrumCollection


Expand Down

0 comments on commit 1cc55d1

Please sign in to comment.