Skip to content

Commit

Permalink
Use store.chunk_store to test if container is N5
Browse files Browse the repository at this point in the history
  • Loading branch information
funkey committed Oct 5, 2023
1 parent 0c13f37 commit 9d25708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gunpowder/nodes/zarr_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def _get_offset(self, dataset):

def _rev_metadata(self):
with ZarrFile(self.store, mode="a") as store:
return isinstance(store, N5Store) or isinstance(store, N5FSStore)
return (
isinstance(store.chunk_store, N5Store) or
isinstance(store.chunk_store, N5FSStore)
)

def _open_file(self, store):
return ZarrFile(store, mode="r")
Expand Down

0 comments on commit 9d25708

Please sign in to comment.