-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiscale arrays in Zarr V3 with provisional metadata #269
Support multiscale arrays in Zarr V3 with provisional metadata #269
Conversation
…ale-arrays-in-zarr-v3-with-provisional-metadata
…ale-arrays-in-zarr-v3-with-provisional-metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, other than a couple of nitpicky indentation things.
src/zarr.cpp
Outdated
{ "type", "scale" }, | ||
{ "scale", scales }, | ||
}, | ||
} }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trivial, but this indenting is confusing
src/zarr.cpp
Outdated
{ "type", "scale" }, | ||
{ "scale", scales }, | ||
}, | ||
} }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trivial, but this indenting is confusing
This PR uses the same OME metadata as our Zarr V2 writer to express multiscale semantics. The following changes were made:
Zarr::make_multiscale_metadata_()
, was implemented by moving the code fromZarrV2::write_group_metadata_()
so that it could be made accessible to bothZarrV2
andZarrV3
instances.make_multiscale_metadata_()
from both overrides ofwrite_group_metadata_()
.Zarr::get_meta()
to reflect that both types of Zarr store support multiscale.Basic functionality is verified in the
write-zarr-v3-raw-multiscale.cpp
test file. The test scheme is the same as inwrite-zarr-v2-raw-multiscale.cpp
, but the paths are changed to reflect the different layout.