Skip to content

Conversation

@cshanahan1
Copy link
Contributor

@cshanahan1 cshanahan1 commented Jan 14, 2026

This PR fixes some issues related to loading data with incompatible spectral axis units (data with pixel-only SA units and data with wavelength info). If you load in a 1d spectrum with the spectral axis in pixels, and then try to load a 2d spectrum in nm, loading errors out with a traceback.

While there are other issues related to using plugins when there are multiple viewers with incompatible units, the fixes in this PR allow the data to at least be loaded by fixing the initialization of the cross-dispersion profile and spectral extraction plugins, where the incompatibility of the new loaded data and the unit of 'pixel' set in the unit conversion plugin by the first load (which has no equivalent units for conversion) was causing tracebacks.

@github-actions github-actions bot added plugin Label for plugins common to multiple configurations specviz2d labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin Label for plugins common to multiple configurations specviz2d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant