Skip to content

Commit

Permalink
don't open data menu when populating phase viewer
Browse files Browse the repository at this point in the history
if spacetelescope/jdaviz#2742 is merged, we should include this to avoid opening the data menu when creating populated phase viewers
  • Loading branch information
kecnry committed Mar 8, 2024
1 parent 8de2db9 commit b5f0bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lcviz/plugins/ephemeris/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b5f0bad

Please sign in to comment.