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

Method test_distinct

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

Source from the content-addressed store, hash-verified

881 xr.merge([tree, ds]) # type: ignore[list-item]
882
883 def test_distinct(self) -> None:
884 tree1 = xr.DataTree.from_dict({"/a/b/c": 1})
885 tree2 = xr.DataTree.from_dict({"/a/d/e": 2})
886 expected = xr.DataTree.from_dict({"/a/b/c": 1, "/a/d/e": 2})
887 merged = xr.merge([tree1, tree2])
888 assert_equal(merged, expected)
889
890 def test_overlap(self) -> None:
891 tree1 = xr.DataTree.from_dict({"/a/b": 1})

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
from_dictMethod · 0.45
mergeMethod · 0.45

Tested by

no test coverage detected