You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One them is "node". It is a container that has no structure or data in itself, but it has children. It may correspond to a directory, a dictionary-like object, an HDF5 group, or any similar structure.
Confusingly, we also use the word "node" to refer to any object in tiled, whatever its structure. To give just one example, the endpoint /node/metadata/x/y/z accesses the metadata for the node at /x/y/z whether it's an "array" or "dataframe" or "node". We have received feedback from several directions that this is very confusing.
I propose to change
StructureFamily.node -> StructureFamily.container
tiled.client.Node -> tiled.client.Container
This is an important change but it is a fairly targeted one that I think will not affect very much code. Some aspects can be made backward-compatible, but not all.
Other names considered but rejected in favor of "container":
While we're at it I think we should simplify our URLs from /node/metadata, /node/search and /node/distinct to just /metadata/search and /distinct. The /node prefix made sense early on but now it's just extra typing.
From the perspective of "documentation-driven development" I like the idea of teaching...
In Tiled we have defined structure families:
tiled/tiled/structures/core.py
Lines 12 to 16 in 6b1ee86
One them is
"node"
. It is a container that has no structure or data in itself, but it has children. It may correspond to a directory, a dictionary-like object, an HDF5 group, or any similar structure.Confusingly, we also use the word "node" to refer to any object in tiled, whatever its structure. To give just one example, the endpoint
/node/metadata/x/y/z
accesses the metadata for the node at/x/y/z
whether it's an "array" or "dataframe" or "node". We have received feedback from several directions that this is very confusing.I propose to change
StructureFamily.node
->StructureFamily.container
tiled.client.Node
->tiled.client.Container
This is an important change but it is a fairly targeted one that I think will not affect very much code. Some aspects can be made backward-compatible, but not all.
Other names considered but rejected in favor of "container":
Discussed with @dylanmcreynolds
The text was updated successfully, but these errors were encountered: