datatree.DataTree.find_common_ancestor#

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

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

Raise ValueError if they are not in the same tree.