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

Try viewing zarr arr #22

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions docs/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from rich.pretty import pprint


from itkwidgets import view
import gcsfs
import zarr
import zarr.storage
Expand Down Expand Up @@ -74,11 +75,10 @@
#
# Although these models do not handle reading or writing data, they do expose the zarr arrays.

zarr_arr = ome_zarr_image.group[multiscales_meta[0].datasets[0].path]
zarr_arr = ome_zarr_image.group[multiscales_meta[0].datasets[-1].path]
pprint(zarr_arr)
view(zarr_arr[0, :, :, :])

# ## Not using validation
#
# If you want to create models that are not validated against the OME-zarr specifciation, you can use the ``model_construct`` method on the models.


2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docs = [
"gcsfs",
"rich",
"zarr<3",
"itkwidgets",
]
pydantic = ["pydantic"]

Expand All @@ -34,6 +35,7 @@ docs = [
"gcsfs",
"rich",
"zarr<3",
"itkwidgets",
]
dev = [
"jupyter[notebook]>=1.1.1",
Expand Down