Skip to content

Commit

Permalink
exclude slice for 2d images in cubeviz
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 16, 2023
1 parent 1443057 commit 349f66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/plugins/coords_info/coords_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _image_viewer_update(self, viewer, x, y):
coords_status = False

slice_plugin = self.app._jdaviz_helper.plugins.get('Slice', None)
if slice_plugin is not None:
if slice_plugin is not None and len(image.shape) == 3:
# float to be compatible with default value of nan
self._dict['slice'] = float(slice_plugin.slice)
self._dict['spectral_axis'] = slice_plugin.wavelength
Expand Down

0 comments on commit 349f66f

Please sign in to comment.