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

Method test_merge_dataarray

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

Source from the content-addressed store, hash-verified

760 ds1.merge(ds3, compat="no_conflicts", join="outer")
761
762 def test_merge_dataarray(self):
763 ds = xr.Dataset({"a": 0})
764 da = xr.DataArray(data=1, name="b")
765
766 assert_identical(ds.merge(da), xr.merge([ds, da]))
767
768 @pytest.mark.parametrize(
769 ["combine_attrs", "attrs1", "attrs2", "expected_attrs", "expect_error"],

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.95
assert_identicalFunction · 0.90

Tested by

no test coverage detected