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

Minor updates to sync with latest zarr version #113

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion elf/io/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def zarr_open(*args, **kwargs):
return z

register_filetype(
zarr_open, N5_EXTS + ZARR_EXTS, zarr.hierarchy.Group, zarr.core.Array, True
zarr_open, N5_EXTS + ZARR_EXTS, zarr.Group, zarr.Array, True
)
except ImportError:
zarr = None
Expand Down
2 changes: 1 addition & 1 deletion elf/io/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def is_h5py(node) -> bool:
def is_zarr(node) -> bool:
"""Check if the argument is a zarr object.
"""
return zarr and isinstance(node, (zarr.core.Array, zarr.hierarchy.Group))
return zarr and isinstance(node, (zarr.Array, zarr.Group))


def is_pyn5(node) -> bool:
Expand Down
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ dependencies:
- threadpoolctl
- vigra
- z5py
- zarr >=3,<4
Loading