Skip to content

Commit

Permalink
rename TPF viewer to "image"
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jan 29, 2024
1 parent 8a703ae commit fb656fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lcviz/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def light_curve_parser(app, file_obj, data_label=None, show_in_viewer=True, **kw
app.add_data(data, new_data_label)

if isinstance(light_curve, lightkurve.targetpixelfile.TargetPixelFile):
# ensure a TPF viewer exists
# ensure an image/cube/TPF viewer exists
# TODO: move this to an event listener on add_data so that we can also remove when empty?
from jdaviz.core.events import NewViewerMessage
from lcviz.viewers import CubeView
viewer_reference_name = 'tpf'
viewer_reference_name = 'image'
if viewer_reference_name not in app._viewer_store.keys():
app._on_new_viewer(NewViewerMessage(CubeView, data=None, sender=app),
vid='tpf', name='tpf')
vid='image', name='image')
if show_in_viewer:
app.add_data_to_viewer(viewer_reference_name, new_data_label)

Expand Down

0 comments on commit fb656fa

Please sign in to comment.