Repository navigation
feat: add parent property to Group and Array - #4659
Open
hereiszepedro wants to merge 3 commits into
Open
hereiszepedro wants to merge 3 commits into
hereiszepedro wants to merge 3 commits into
Conversation
hereiszepedro
marked this pull request as ready for review
November 25, 2026 18:57
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4659 +/- ##
=======================================
Coverage 94.91% 94.91%
=======================================
Files 96 96
Lines 14070 14082 +12
=======================================
+ Hits 13354 13366 +12
Misses 716 716
🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #166.
Group.parentandArray.parentreturn the group that contains the node, orNoneat the root of the store. This follows the h5py.parentconvention and allows navigating up a hierarchy.The parent is opened from the store each time the property is read, with the same Zarr format as the child.
For reviewers
AsyncGroup/AsyncArrayif you want it.zarr.jsondocuments), readingparentraises the same error asGroup.openon that path. I did not add special handling for that case.Author attestation
TODO
docs/user-guide/*.mdchanges/