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

Function zip_subtrees

xarray/core/treenode.py:869–874  ·  view source on GitHub ↗

Zip together subtrees aligned by relative path.

(
    *trees: AnyNamedNode,
)

Source from the content-addressed store, hash-verified

867
868
869def zip_subtrees(
870 *trees: AnyNamedNode,
871) -> Iterator[tuple[AnyNamedNode, ...]]:
872 """Zip together subtrees aligned by relative path."""
873 for _, nodes in group_subtrees(*trees):
874 yield nodes

Callers 4

equalsMethod · 0.90
identicalMethod · 0.90
test_one_treeMethod · 0.90
test_different_orderMethod · 0.90

Calls 1

group_subtreesFunction · 0.85

Tested by 2

test_one_treeMethod · 0.72
test_different_orderMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…