-
-
Notifications
You must be signed in to change notification settings - Fork 366
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python libraryspec compliance
Description
Zarr version
v3.1.3
Numcodecs version
0.15.1
Python Version
3.12
Operating System
Mac
Installation
pip in a virtual environment
Description
The spec at https://zarr-specs.readthedocs.io/en/latest/v3/core/index.html#group-metadata-extensions says:
All other keys [other than zarr_format, node_type and attributes] found in the metadata object MUST be interpreted following the Extensions section.
All the extension points listed there apply to node_type array, rather than groups.
However, it seems that zarr-python writes "consolidated_metadata": null, to groups.
This gives an error when trying to read the data with zarr-java:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "consolidated_metadata" (class dev.zarr.zarrjava.v3.GroupMetadata), not marked as ignorable (3 known properties: "zarr_format", "node_type", "attributes"])
Steps to reproduce
>>> import zarr
>>> g = zarr.create_group("test2")
>>> g.attrs["ome"] = {}$ cat test2/zarr.json
{
"attributes": {
"ome": {}
},
"zarr_format": 3,
"consolidated_metadata": null,
"node_type": "group"
}
Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python libraryspec compliance