From 9d25708857e45937bead5426b8fcceee3429191e Mon Sep 17 00:00:00 2001 From: Jan Funke Date: Thu, 5 Oct 2023 14:15:38 -0400 Subject: [PATCH] Use store.chunk_store to test if container is N5 --- gunpowder/nodes/zarr_source.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")