Skip to content

Commit

Permalink
Merge pull request #47 from PaulHax/ngff-hint
Browse files Browse the repository at this point in the history
ENH: Add a multiscale_spatial_image_version entry to .zattrs
  • Loading branch information
thewtex authored May 23, 2022
2 parents 809136b + 625e1ce commit d563e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiscale_spatial_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def to_zarr(self, store, mode: str = "w", encoding=None, **kwargs):
)

# NGFF v0.4 metadata
ngff_metadata = {"multiscales": multiscales}
ngff_metadata = {"multiscales": multiscales, "multiscaleSpatialImageVersion": 1}
self.ds.attrs = ngff_metadata

super().to_zarr(store, **kwargs)
Expand Down

0 comments on commit d563e5e

Please sign in to comment.