Skip to content

Commit f810185

Browse files
authored
Set zarr_format for zarr.consolidate_metadata (#9848)
Avoids a few useless gets with Zarr v3 stores.
1 parent 7445012 commit f810185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xarray/backends/zarr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ def store(
972972
if _zarr_v3():
973973
# https://github.com/zarr-developers/zarr-python/pull/2113#issuecomment-2386718323
974974
kwargs["path"] = self.zarr_group.name.lstrip("/")
975+
kwargs["zarr_format"] = self.zarr_group.metadata.zarr_format
975976
zarr.consolidate_metadata(self.zarr_group.store, **kwargs)
976977

977978
def sync(self):

0 commit comments

Comments
 (0)