Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim authored Dec 20, 2024
1 parent ab238d9 commit 10d7270
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 10d7270

Please sign in to comment.