Skip to content

Commit ab3810b

Browse files
committed
TEMP: force spectrum to plot in pixel-space
* revert this commit once glue handles non-linear wavelength scaling
1 parent 3af6205 commit ab3810b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from jdaviz.core.marks import PluginLine
1515

1616
from astropy.nddata import UnknownUncertainty
17+
from astropy import units
1718
from specreduce import tracing
1819
from specreduce import background
1920
from specreduce import extract
@@ -880,6 +881,10 @@ def export_extract_spectrum(self, add_data=False, **kwargs):
880881
extract = self.export_extract(**kwargs)
881882
spectrum = extract.spectrum
882883

884+
# TEMPORARY: override spectral axis to be in pixels until properly supporting plotting
885+
# in wavelength/frequency
886+
spectrum._spectral_axis = np.arange(len(spectrum.spectral_axis)) * units.pix
887+
883888
if add_data:
884889
self.ext_add_results.add_results_from_plugin(spectrum, replace=False)
885890

0 commit comments

Comments
 (0)