Skip to content

Commit

Permalink
pygfx
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 7, 2024
1 parent 39e07cc commit ff279d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies = ["qtpy", "numpy", "superqt[cmap,iconify]"]
pyqt = ["pyqt6"]
vispy = ["vispy", "pyopengl"]
pyside = ["pyside6"]
pygfx = ["pygfx"]
test = ["pytest", "pytest-cov", "pytest-qt", "dask"]
dev = [
"ipython",
Expand Down
6 changes: 4 additions & 2 deletions src/ndv/viewer/_backends/_pygfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ def _animate(self) -> None:
def set_ndim(self, ndim: int) -> None:
"""Set the number of dimensions of the displayed data."""
if ndim != 2:
raise NotImplementedError("Volume rendering is not supported by pygfx yet.")
raise NotImplementedError(
"Volume rendering with pygfx is not yet supported."
)

def add_volume(
self, data: np.ndarray | None = None, cmap: cmap.Colormap | None = None
) -> PyGFXImageHandle:
raise NotImplementedError("Volume rendering is not supported by pygfx yet.")
raise NotImplementedError("Volume rendering with pygfx is not yet supported.")

def add_image(
self, data: np.ndarray | None = None, cmap: cmap.Colormap | None = None
Expand Down

0 comments on commit ff279d8

Please sign in to comment.