Closed flamingbear closed 4 weeks ago
Is this still relevant?
I don't think it is, at least I can't reproduce the original issue with xarray.core.datatree.DataTree
.
However, tree.update({"a/b": node})
still does not work (it raises ValueError: node names cannot contain forward slashes
), which may or may not be by design.
Okay thanks.
Not accepting node names with slashes seems reasonable to me, at least for now. If we generalize that later we can discuss it in a new issue / PR, so I think this one can be closed?
What is your issue?
Originally posted by @keewis in https://github.com/xarray-contrib/datatree/issues/203
there's something weird happening when assigning nodes using
update
:(the parent of
node
isNone
, so its root is the node itself)So it seems with
update
/assign
you can end up with a inconsistent tree? With https://github.com/xarray-contrib/datatree/pull/201, that inconsistent tree fails to copy becauserelative_to
raises an error.