MCPcopy Index your code
hub / github.com/pydata/xarray / isomorphic

Method isomorphic

xarray/core/datatree.py:1514–1534  ·  view source on GitHub ↗

Two DataTrees are considered isomorphic if the set of paths to their descendent nodes are the same. Nothing about the data in each node is checked. Isomorphism is a necessary condition for two trees to be used in a nodewise binary operation, such as ``tree1

(self, other: DataTree)

Source from the content-addressed store, hash-verified

1512 return DataVariables(self.to_dataset())
1513
1514 def isomorphic(self, other: DataTree) -> bool:
1515 """
1516 Two DataTrees are considered isomorphic if the set of paths to their
1517 descendent nodes are the same.
1518
1519 Nothing about the data in each node is checked.
1520
1521 Isomorphism is a necessary condition for two trees to be used in a nodewise binary operation,
1522 such as ``tree1 + tree2``.
1523
1524 Parameters
1525 ----------
1526 other : DataTree
1527 The other tree object to compare to.
1528
1529 See Also
1530 --------
1531 DataTree.equals
1532 DataTree.identical
1533 """
1534 return diff_treestructure(self, other) is None
1535
1536 def equals(self, other: DataTree) -> bool:
1537 """

Callers 6

equalsMethod · 0.95
identicalMethod · 0.95
test_compute_falseMethod · 0.80
test_filter_likeMethod · 0.80
test_isomorphicMethod · 0.80
assert_isomorphicFunction · 0.80

Calls 1

diff_treestructureFunction · 0.90

Tested by 3

test_compute_falseMethod · 0.64
test_filter_likeMethod · 0.64
test_isomorphicMethod · 0.64