Skip to content

Commit

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

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="a")
Expand Down

0 comments on commit 5db779a

Please sign in to comment.