Skip to content

Commit

Permalink
remove _orig_spec logic for continuum determination
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Dec 11, 2023
1 parent 9b6350f commit 4a38531
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2053,10 +2053,7 @@ def _get_continuum(self, dataset, spatial_subset, spectral_subset, update_marks=
if spatial_subset == 'per-pixel':
if self.app.config != 'cubeviz':
raise ValueError("per-pixel only supported for cubeviz")
if "_orig_spec" in self.dataset.selected_obj.meta:
full_spectrum = self.dataset.selected_obj.meta["_orig_spec"]
else:
full_spectrum = self.dataset.selected_obj
full_spectrum = self.dataset.selected_obj
else:
full_spectrum = dataset.selected_spectrum_for_spatial_subset(spatial_subset.selected if spatial_subset is not None else None, # noqa
use_display_units=True)
Expand Down

0 comments on commit 4a38531

Please # to comment.