Skip to content

Commit

Permalink
BUG: Also check for inf in spaxel tool
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 24, 2024
1 parent 24c4440 commit 88a619a
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 np.all(np.isnan(y_values)):
if not np.all(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 88a619a

Please sign in to comment.