Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
because Ricky said first commit prevent data with any nan/inf
from being displayed even when data has some good ones
  • Loading branch information
pllim committed Dec 24, 2024
1 parent 88a619a commit 3c1664a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/cubeviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c1664a

Please sign in to comment.