From 3c1664affafa3ca2050711d0cb467e17a2c2b5cd Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:17:30 -0500 Subject: [PATCH] Fix logic because Ricky said first commit prevent data with any nan/inf from being displayed even when data has some good ones --- jdaviz/configs/cubeviz/plugins/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)