-
Notifications
You must be signed in to change notification settings - Fork 42
assigning Dataset
objects to nodes
#200
Comments
I had this issue too. I think the error message should ask the user to use Making the shortcut work might make the data model appear confusing |
It raises just because I left it for later to implement. I do agree with Deepak though - is it confusing to be able to assign a Datatree object or a Dataset object? We could also generalise to assigning a mapping of variables or arrays - we could assign anything that is a valid set of arguments to the Dataset constructor. I wasn't sure how far to go so I stopped early. |
I guess that's reasonable, and I can just use The error message definitely could use some improvement in that case, though! |
closed for pydata/xarray#9335 |
Intuitively, I'd assume
to create a new node with the assigned
Dataset
as the data.However, currently this raises
which does not really tell us why it raises.
Would it be possible to enable that short-cut for assigning data to new nodes? I'm not sure what to do if the node already exists, though (overwrite the data? drop the existing node?)
The text was updated successfully, but these errors were encountered: