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

Method test_concat_multiple_dims

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

Source from the content-addressed store, hash-verified

529 assert_identical(expected, actual)
530
531 def test_concat_multiple_dims(self):
532 objs = [
533 [Dataset({"a": (("x", "y"), [[0]])}), Dataset({"a": (("x", "y"), [[1]])})],
534 [Dataset({"a": (("x", "y"), [[2]])}), Dataset({"a": (("x", "y"), [[3]])})],
535 ]
536 actual = combine_nested(objs, concat_dim=["x", "y"])
537 expected = Dataset({"a": (("x", "y"), [[0, 1], [2, 3]])})
538 assert_identical(expected, actual)
539
540 def test_concat_name_symmetry(self):
541 """Inspired by the discussion on GH issue #2777"""

Callers

nothing calls this directly

Calls 3

DatasetClass · 0.90
combine_nestedFunction · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected