datatree.DataTree.find_common_ancestor

Attention

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

datatree.DataTree.find_common_ancestor#

DataTree.find_common_ancestor(other: NamedNode) NamedNode[source]#

Find the first common ancestor of two nodes in the same tree.

Raise ValueError if they are not in the same tree.