Skip to content

Commit

Permalink
TEMP: force spectrum to plot in pixel-space
Browse files Browse the repository at this point in the history
* revert this commit once glue handles non-linear wavelength scaling
  • Loading branch information
kecnry committed Dec 2, 2022
1 parent 0465147 commit 6150fba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from jdaviz.core.marks import PluginLine

from astropy.nddata import UnknownUncertainty
from astropy import units
from specreduce import tracing
from specreduce import background
from specreduce import extract
Expand Down Expand Up @@ -880,6 +881,10 @@ def export_extract_spectrum(self, add_data=False, **kwargs):
extract = self.export_extract(**kwargs)
spectrum = extract.spectrum

# TEMPORARY: override spectral axis to be in pixels until properly supporting plotting
# in wavelength/frequency
spectrum._spectral_axis = np.arange(len(spectrum.spectral_axis)) * units.pix

if add_data:
self.ext_add_results.add_results_from_plugin(spectrum, replace=False)

Expand Down

0 comments on commit 6150fba

Please sign in to comment.