Skip to content

Commit d22cb97

Browse files
Alpaca233claude
andcommitted
fix: Add zarr_format field to .zgroup for Zarr v2 scale groups
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cb0cd5d commit d22cb97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilefusion/io/zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,6 @@ def write_scale_group_metadata(scale_path: Path, zarr_version: int = 2) -> None:
390390
# Zarr v2 format
391391
ngff = {"_ARRAY_DIMENSIONS": ["t", "c", "z", "y", "x"]}
392392
with open(scale_path / ".zgroup", "w") as f:
393-
json.dump({}, f)
393+
json.dump({"zarr_format": 2}, f)
394394
with open(scale_path / ".zattrs", "w") as f:
395395
json.dump(ngff, f, indent=2)

0 commit comments

Comments
 (0)