convenience
zarr.consolidate_metadata ¶
consolidate_metadata(
store: StoreLike,
path: str | None = None,
zarr_format: ZarrFormat | None = None,
) -> Group
Consolidate the metadata of all nodes in a hierarchy.
Upon completion, the metadata of the root node in the Zarr hierarchy will be
updated to include all the metadata of child nodes. For Stores that do
not use consolidated metadata, this operation raises a TypeError
.
Parameters:
-
store
(StoreLike
) –The store-like object whose metadata you wish to consolidate.
-
path
(str
, default:None
) –A path to a group in the store to consolidate at. Only children below that group will be consolidated.
By default, the root node is used so all the metadata in the store is consolidated.
-
zarr_format
((2, 3, None)
, default:2
) –The zarr format of the hierarchy. By default the zarr format is inferred.
Returns:
-
group
(Group
) –The group, with the
consolidated_metadata
field set to include the metadata of each child node. If the Store doesn't support consolidated metadata, this function raises aTypeError
. SeeStore.supports_consolidated_metadata
.
Source code in zarr/api/synchronous.py
zarr.copy ¶
zarr.copy_all ¶
zarr.copy_store ¶
zarr.print_debug_info ¶
Print version info for use in bug reports.
Source code in zarr/__init__.py
zarr.tree ¶
Provide a rich display of the hierarchy.
Deprecated
zarr.tree()
is deprecated since v3.0.0 and will be removed in a future release.
Use group.tree()
instead.
Parameters:
-
grp
(Group
) –Zarr or h5py group.
-
expand
(bool
, default:None
) –Only relevant for HTML representation. If True, tree will be fully expanded.
-
level
(int
, default:None
) –Maximum depth to descend into hierarchy.
Returns:
-
TreeRepr
–A pretty-printable object displaying the hierarchy.