-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
API designtopic-DataTreeRelated to the implementation of a DataTree classRelated to the implementation of a DataTree class
Description
What is your issue?
It is not inherently clear to that DataTree(data=...)
and DataTree.ds
refer to the same thing, or that it refers specifically to the dataset associated with the node. We also do not use the abbreviation .ds
anywhere else in Xarray.
Instead, what about calling this argument node
? This makes the data model of DataTree much more transparent, it's just a node
and children
, with optional name
and parent
.
Example usage:
tree = DataTree(node=Dataset(...))
tree.node = Dataset(...)
Metadata
Metadata
Assignees
Labels
API designtopic-DataTreeRelated to the implementation of a DataTree classRelated to the implementation of a DataTree class