diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py index 7ccdc12b71..93d0f26f5c 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -567,7 +567,7 @@ def _preview_y_from_extracted(self, extracted): # may need flux<>sb equivalencies, as well as spectral_density eqv =_eqv_pixar_sr(self.dataset.selected_obj.meta.get('PIXAR_SR', 1.0)) # for conversions between flux <> sb per sr eqv += _eqv_flux_to_sb_pixel() # for conversions between flux <> sb per pix2 - eqv += u.spectral_density(self.slice_spectral_value * self.slice_display_unit) + eqv += u.spectral_density(self.dataset.selected_obj.spectral_axis) # call this rather than unit.to because this function handles special cases where # the solid angle needs to be multiplied out before conversion diff --git a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py index 908df3b6b4..e2d2435415 100644 --- a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py +++ b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py @@ -637,7 +637,6 @@ def _copy_axes_to_spectral(): # or will be generalized for any sb <-> flux if '_pixel_scale_factor' in sp.meta: disp_flux = flux_conversion(sp.flux.value, sp.flux.unit, viewer.state.y_display_unit, spec=sp) # noqa: E501 - #disp_flux = flux_conversion_general(sp.flux.value, sp.flux.unit, ) else: disp_flux = sp.flux.to_value(viewer.state.y_display_unit, u.spectral_density(sp.spectral_axis))