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.
See also
DataTree.isomorphic
,assert_equal
,assert_identical