diff --git a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py index 87674a5253..b1306b198d 100644 --- a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py +++ b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py @@ -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,