Skip to content

Commit

Permalink
lcviz support for "show cube viewer" button
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Feb 16, 2024
1 parent dc21126 commit 14d8a7a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lcviz/plugins/slice/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
from jdaviz.configs.cubeviz.plugins import Slice
from jdaviz.core.registries import tray_registry

#from lcviz.viewers import CubeView
from lcviz.viewers import CubeView

__all__ = ['Slice']


@tray_registry('lcviz-slice', label="Slice")
class Slice(Slice):
_cube_viewer_cls = CubeView
_cube_viewer_default_label = 'image'

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#slice"
Expand Down Expand Up @@ -82,10 +85,3 @@ def _update_reference_data(self, reference_data):
if reference_data is None:
return # pragma: no cover
self._update_data(reference_data.get_object().time)

# def _viewer_slices_changed(self, value):
# if len(value) == 3:
# self.slice = float(value[0])

# def _set_viewer_to_slice(self, viewer, value):
# viewer.state.slices = (value, 0, 0)

0 comments on commit 14d8a7a

Please sign in to comment.