diff --git a/jdaviz/configs/cubeviz/plugins/tools.py b/jdaviz/configs/cubeviz/plugins/tools.py index 1b37c4f2b4..1eb1170227 100644 --- a/jdaviz/configs/cubeviz/plugins/tools.py +++ b/jdaviz/configs/cubeviz/plugins/tools.py @@ -163,7 +163,7 @@ def _mouse_move_worker(self, x, y): self.viewer.stop_stream() else: y_values = spectrum.flux[x, y, :].value - if not np.all(np.isfinite(y_values)): + if not np.any(np.isfinite(y_values)): self._mark.visible = False return self._mark.update_xy(spectrum.spectral_axis.value, y_values)