diff --git a/gunpowder/nodes/zarr_source.py b/gunpowder/nodes/zarr_source.py index f4c19c75..812769f3 100644 --- a/gunpowder/nodes/zarr_source.py +++ b/gunpowder/nodes/zarr_source.py @@ -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")