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.
ArraySpecandGroupSpecnow have alike()method for doing parametrized comparisons with other objectsArraySpecandGroupSpeccan 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_zarrnow returns anArrayorGroupif a pre-existing array or group exists, as long as that array or group is structurally identical tox(addresses maketo_zarrmore subtle when encountering existing stuff #14)GroupSpec.membersis now nullableGroup.from_zarrtakes adepthparameter, which determines how deep into the hierarchy to go.GroupSpecinstances with members that were not examined due to this parameter will havemembersset toNone(addresses Limit recursion in GroupSpec.from_zarr #2)