Skip to content

Commit 3fd82c7

Browse files
committed
feat(healpix): add HEALPix viewer
1 parent bba0fb9 commit 3fd82c7

3 files changed

Lines changed: 381 additions & 23 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
dependencies = [
99
# viz
10-
"vtk>=9.4.2",
10+
"vtk>=9.6",
1111

1212
# catalog handling
1313
"requests>=2.31",
@@ -33,16 +33,18 @@ classifiers = [
3333

3434
[project.optional-dependencies]
3535
viewer = [
36-
"trame>=3.9",
37-
"trame-client>=3.9.1",
38-
"trame-vtk>=2.8.15",
39-
"trame-vtklocal>=0.12.2",
40-
"trame-vuetify>=3.0.1",
41-
"trame-plotly>=3.1.0",
36+
"trame>=3.12",
37+
"trame-vtk>=2.11.8",
38+
"trame-vtklocal>=0.17.1",
39+
"trame-vuetify>=3.2.1",
40+
"trame-plotly>=3.1.2",
4241
]
4342
esgf = [
4443
"intake-esgf>=2024.1",
4544
]
45+
healpix = [
46+
"healpy",
47+
]
4648
pangeo = [
4749
"intake==0.7.0", # latest has plugin errors
4850
"intake-xarray>=0.7",
@@ -60,6 +62,9 @@ all = [
6062
"trame-vuetify>=3.0.1",
6163
"trame-plotly>=3.1.0",
6264

65+
# healpy
66+
"healpy",
67+
6368
# esgf
6469
"intake-esgf>=2024.1",
6570

@@ -84,15 +89,15 @@ xr-slicer = "pan3d.explorers.slicer:main"
8489
xr-globe = "pan3d.explorers.globe:main"
8590
xr-contour = "pan3d.explorers.contour:main"
8691
xr-analytics = "pan3d.explorers.analytics:main"
92+
healpix = "pan3d.custom.healpix:main"
8793

8894
[build-system]
8995
requires = ["hatchling"]
9096
build-backend = "hatchling.build"
9197

9298
[tool.hatch.build]
9399
include = [
94-
"/src/trame/**/*.py",
95-
"/src/pan3d/**/*.py",
100+
"/src/**/*.py",
96101
"/src/pan3d/**/module/serve/*.js",
97102
"/src/pan3d/**/ui/custom.css",
98103
"/src/pan3d/**/ui/css/*",

src/pan3d/custom/contour.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,6 @@ def _setup_vtk(self):
146146
self.widget.EnabledOn()
147147
self.widget.InteractiveOff()
148148

149-
# -------------------------------------------------------------------------
150-
# Trame API
151-
# -------------------------------------------------------------------------
152-
153-
@property
154-
def state(self):
155-
"""Returns the current the trame server state."""
156-
return self.server.state
157-
158-
@property
159-
def ctrl(self):
160-
"""Returns the Controller for the trame server."""
161-
return self.server.controller
162-
163149
# -------------------------------------------------------------------------
164150
# UI
165151
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)