-
Notifications
You must be signed in to change notification settings - Fork 2
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
don't use a field called items
#6
Comments
possible new names for this attribute: |
I'd vote for |
I think it would probably be good to promote this discussion to a ZEP outlining a standard JSON-serializable representation of a zarr hierarchy. Then we aren't solely responsible for naming decisions like this, and it's easier for other validation tools to simply copy the standard. Since you had an opinion in this issue, you have any objection to joining me on that ZEP? I'd probably get the ball rolling in the next few days. |
It's only a very gentle opinion, but sure! |
Thinking about it, isn't that serialized hierarchy exactly what's going to be needed for consolidated metadata? Is there already a consolidated metadata spec in zarr 2? |
I couldn't find a proper standard for consolidated metadata. My quick googling turned up this: zarr-developers/zarr-specs#113, which kind of presages this issue. I think the consolidated metadata uses a flat namespace for keys, which is convenient for mapping onto the The consolidated metadata also uses the names of objects in storage for keys, e.g. I see consolidated metadata as a solution to the problem of "I want to use the zarr-python API, but I only want to read one JSON document", whereas the representation in |
Adding other options: |
I think |
The spec refers mainly to "nodes" and when talking about nodes contained by a particular group, "child nodes" or "children". Could anyone incorrectly assume that "nodes" includes all descendants, or possibly the node itself, rather than just direct children? |
That seems possible. @krokicki suggested "members", which I think is even better than "nodes". I'm leaning toward "members" unless there's any objections. |
closed by #12 |
Right now,
GroupSpec
has anitems
attribute (dict[str, TItem]
). Butitems
is a method on mutablemappings. Usingitems
as an attribute is a) confusing, and b) preventsGroupSpec
from inheriting fromMutableMapping
, because of attribute name overlap. We should change the name of the attribute to something that doesn't shadow a core python method.The text was updated successfully, but these errors were encountered: