add to_flat
, from_flat
, like
, and better handling for existing arrays / groups
#25
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.
ArraySpec
andGroupSpec
now have alike()
method for doing parametrized comparisons with other objectsArraySpec
andGroupSpec
can be created from flat representations of trees in the form ofdict[str, ArraySpec | GroupSpec]
(addresses add validation logic for relative paths #23, names with the/
character in them #24)x.to_zarr
now returns anArray
orGroup
if a pre-existing array or group exists, as long as that array or group is structurally identical tox
(addresses maketo_zarr
more subtle when encountering existing stuff #14)GroupSpec.members
is now nullableGroup.from_zarr
takes adepth
parameter, which determines how deep into the hierarchy to go.GroupSpec
instances with members that were not examined due to this parameter will havemembers
set toNone
(addresses Limit recursion in GroupSpec.from_zarr #2)