MCPcopy
hub / github.com/pydata/xarray / test_overlap

Method test_overlap

xarray/tests/test_merge.py:890–896  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

888 assert_equal(merged, expected)
889
890 def test_overlap(self) -> None:
891 tree1 = xr.DataTree.from_dict({"/a/b": 1})
892 tree2 = xr.DataTree.from_dict({"/a/c": 2})
893 tree3 = xr.DataTree.from_dict({"/a/d": 3})
894 expected = xr.DataTree.from_dict({"/a/b": 1, "/a/c": 2, "/a/d": 3})
895 merged = xr.merge([tree1, tree2, tree3])
896 assert_equal(merged, expected)
897
898 def test_inherited(self) -> None:
899 tree1 = xr.DataTree.from_dict({"/a/b": ("x", [1])}, coords={"x": [0]})

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
from_dictMethod · 0.45
mergeMethod · 0.45

Tested by

no test coverage detected