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

Method test_datatree

xarray/tests/test_combine.py:782–786  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

780 combine_nested(objs, concat_dim="x") # type: ignore[arg-type]
781
782 def test_datatree(self):
783 objs = [DataTree.from_dict({"foo": 0}), DataTree.from_dict({"foo": 1})]
784 expected = DataTree.from_dict({"foo": ("x", [0, 1])})
785 actual = combine_nested(objs, concat_dim="x")
786 assert expected.identical(actual)
787
788
789class TestCombineDatasetsbyCoords:

Callers

nothing calls this directly

Calls 3

combine_nestedFunction · 0.90
from_dictMethod · 0.45
identicalMethod · 0.45

Tested by

no test coverage detected