-
-
Notifications
You must be signed in to change notification settings - Fork 449
docs: add spec-style description of the consolidated metadata format #4283
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
Draft
d-v-b
wants to merge
6
commits into
zarr-developers:main
Choose a base branch
from
d-v-b:claude/docs-consolidated-metadata-spec-6f3c45
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+514
−3
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7eb6350
docs: add spec-style description of the consolidated metadata format
d-v-b 95831b2
Merge branch 'main' into claude/docs-consolidated-metadata-spec-6f3c45
d-v-b c7255d9
Merge branch 'main' into claude/docs-consolidated-metadata-spec-6f3c45
d-v-b 2fee4a8
Update docs/user-guide/consolidated_metadata_format.md
d-v-b 9c17bda
Update docs/user-guide/consolidated_metadata_format.md
d-v-b c1bae56
Merge branch 'main' into claude/docs-consolidated-metadata-spec-6f3c45
d-v-b File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,10 @@ entire hierarchy, especially when the metadata is being served over a network. | |
| Consolidated metadata essentially stores all the metadata for a hierarchy in the | ||
| metadata of the root Group. | ||
|
|
||
| This page describes how to use consolidated metadata from Python. For a precise | ||
| description of what is written to the store, intended for other implementations, | ||
| see [Consolidated metadata format](consolidated_metadata_format.md). | ||
|
|
||
| ## Usage | ||
|
|
||
| If consolidated metadata is present in a Zarr Group's metadata then it is used | ||
|
|
@@ -84,9 +88,9 @@ print(output.getvalue()) | |
| !!! info "Added in version 3.1.1" | ||
| The keys in the consolidated metadata are sorted prior to writing. Keys are | ||
| sorted in ascending order by path depth, where a path is defined as a sequence | ||
| of strings joined by `"/"`. For keys with the same path length, lexicographic | ||
| order is used to break the tie. This behavior ensures deterministic metadata | ||
| output for a given group. | ||
| of strings joined by `"/"`. For keys with the same depth, the tie is broken by | ||
| comparing the paths after Unicode NFKC normalization and case-folding. This | ||
| behavior ensures deterministic metadata output for a given group. | ||
|
Comment on lines
+91
to
+93
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems worse for causal readers. Let's at least keep "lexicographic" (since it isn't incorrect, right?) And if we want to be more specific we can, but let's link to the Python docs on normalization. |
||
|
|
||
| ### Controlling the use of consolidated metadata | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I have some hesitancy about linking to this document from user-facing docs. I think the spec (or the PR for the spec) should be sufficient for users, and if it isn't then the docs should be improved there.