Skip to content

Commit

Permalink
Minor updates to sync with latest zarr version
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Jan 11, 2025
1 parent 225db0a commit 9cb29cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 9cb29cf

Please sign in to comment.