xarray.DataTree.find_common_ancestor

xarray.DataTree.find_common_ancestor#

DataTree.find_common_ancestor(other)[source]#

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

Raise ValueError if they are not in the same tree.