Skip to content

Commit

Permalink
add additional equivalencies for coords info
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Jul 8, 2024
1 parent 58c08cb commit 2146060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdaviz/configs/imviz/plugins/coords_info/coords_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,9 @@ def _copy_axes_to_spectral():
if '_pixel_scale_factor' in sp.meta:
eqv = [(u.MJy / u.sr,
u.MJy,
lambda x: (x * sp.meta['_pixel_scale_factor']),
lambda x: (x * np.array(sp.meta.get('_pixel_scale_factor', 1))),
lambda x: x)]
eqv += u.spectral_density(sp.spectral_axis)
disp_flux = sp.flux.to_value(viewer.state.y_display_unit, eqv)
else:
disp_flux = sp.flux.to_value(viewer.state.y_display_unit,
Expand Down

0 comments on commit 2146060

Please # to comment.