Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix creating phase-viewer when TPF is loaded #86

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lcviz/plugins/ephemeris/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@

time_viewer_item = self.app._get_viewer_item(self.app._jdaviz_helper._default_time_viewer_reference_name) # noqa
for data in dc:
if data.ndim > 1:
# skip image/cube entries
continue

Check warning on line 294 in lcviz/plugins/ephemeris/ephemeris.py

View check run for this annotation

Codecov / codecov/patch

lcviz/plugins/ephemeris/ephemeris.py#L294

Added line #L294 was not covered by tests
data_id = self.app._data_id_from_label(data.label)
visible = time_viewer_item['selected_data_items'].get(data_id, 'hidden')
self.app.set_data_visibility(phase_viewer_id, data.label, visible == 'visible')
Expand Down
Loading