From 89d7da1f5b469c02690d7fe6495108403b33e920 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 29 Mar 2024 14:22:30 -0400 Subject: [PATCH] don't open data menu when populating phase viewer (#4) if https://github.com/spacetelescope/jdaviz/pull/2742 is merged, we should include this to avoid opening the data menu when creating populated phase viewers --- lcviz/plugins/ephemeris/ephemeris.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lcviz/plugins/ephemeris/ephemeris.py b/lcviz/plugins/ephemeris/ephemeris.py index 564277c5..2f263ac0 100644 --- a/lcviz/plugins/ephemeris/ephemeris.py +++ b/lcviz/plugins/ephemeris/ephemeris.py @@ -294,7 +294,8 @@ def create_phase_viewer(self, ephem_component=None): phase_viewer_id = self._generate_phase_viewer_id(ephem_component) # TODO: stack horizontally by default? self.app._on_new_viewer(NewViewerMessage(PhaseScatterView, data=None, sender=self.app), - vid=phase_viewer_id, name=phase_viewer_id) + vid=phase_viewer_id, name=phase_viewer_id, + open_data_menu_if_empty=False) # access new viewer, set bookkeeping for ephemeris component pv = self.app.get_viewer(phase_viewer_id)