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
Changes from 1 commit
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
Next Next commit
Minor updates to sync with latest zarr version
anwai98 committed Jan 11, 2025
commit 9cb29cfaa4401cdbd3762133b57c196714b7f228
2 changes: 1 addition & 1 deletion elf/io/extensions.py
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion elf/io/files.py
Original file line number Diff line number Diff line change
@@ -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: