datatree.DataTree.relative_to

Attention

This repository has been archived. Please use xarray.DataTree instead.

datatree.DataTree.relative_to#

DataTree.relative_to(other: 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.