Skip to content

Commit

Permalink
fixed spectral extraction equivalencyg
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Nov 1, 2024
1 parent 8b363ab commit dc6fc9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion jdaviz/configs/imviz/plugins/coords_info/coords_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit dc6fc9c

Please sign in to comment.