xarray.testing.assert_isomorphic

xarray.testing.assert_isomorphic#

xarray.testing.assert_isomorphic(a, b)[source]#

Two DataTrees are considered isomorphic if the set of paths to their descendent nodes are the same.

Nothing about the data or attrs in each node is checked.

Isomorphism is a necessary condition for two trees to be used in a nodewise binary operation, such as tree1 + tree2.

Parameters
  • a (DataTree) – The first object to compare.

  • b (DataTree) – The second object to compare.

See also

DataTree.isomorphic, assert_equal, assert_identical