From fc88465b8feb8c5bbc7dbee7e955610ada1ba732 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 1 Oct 2024 10:45:29 -0400 Subject: [PATCH] fix specviz2d matched mousover marker (#3203) * set coords_status for MosvizProfile2D * changelog entry --- CHANGES.rst | 2 ++ jdaviz/configs/imviz/plugins/coords_info/coords_info.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 2db2dbec97..3f9db42779 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -262,6 +262,8 @@ Specviz Specviz2d ^^^^^^^^^ +- Fix matched mouseover marker for 1d spectrum viewer when mouse is over 2d spectrum viewer. [#3203] + 3.10.3 (2024-07-22) =================== diff --git a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py index 8a22c57b8c..d5aa6f6fd3 100644 --- a/jdaviz/configs/imviz/plugins/coords_info/coords_info.py +++ b/jdaviz/configs/imviz/plugins/coords_info/coords_info.py @@ -428,6 +428,7 @@ def _image_viewer_update(self, viewer, x, y): except Exception: # WCS might not be valid # pragma: no cover coords_status = False else: + coords_status = True self.row2_title = 'Wave' self.row2_text = f'{wave.value:10.5e} {wave.unit.to_string()}' self.row2_unreliable = False