datatree.DataTree.relative_to#

DataTree.relative_to(other: datatree.treenode.NamedNode) str[source]#

Compute the relative path from this node to node other.

If other is not in this tree, or it’s otherwise impossible, raise a ValueError.