Closed
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(...)