From b5f0bad8f53651b5154c3c00259b9f2dc2a48726 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 8 Mar 2024 11:24:47 -0500 Subject: [PATCH] don't open data menu when populating phase viewer 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 b6b62f59..43fd96ba 100644 --- a/lcviz/plugins/ephemeris/ephemeris.py +++ b/lcviz/plugins/ephemeris/ephemeris.py @@ -297,7 +297,8 @@ def create_phase_viewer(self): if create_phase_viewer: # 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) time_viewer_item = self.app._get_viewer_item(self.app._jdaviz_helper._default_time_viewer_reference_name) # noqa for data in dc: