datatree.DataTree.identical#

DataTree.identical(other: datatree.datatree.DataTree, from_root=True) bool[source][source]#

Like equals, but will also check all dataset attributes and the attributes on all variables and coordinates.

By default this method will check the whole tree above the given node.

Parameters
  • other (DataTree) – The other tree object to compare to.

  • from_root (bool, optional, default is True) – Whether or not to first traverse to the root of the two trees before checking for isomorphism. If neither tree has a parent then this has no effect.

See also

Dataset.identical, DataTree.isomorphic, DataTree.equals