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

Method test_auto_combine_2d

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

Source from the content-addressed store, hash-verified

566 assert_identical(expected, actual)
567
568 def test_auto_combine_2d(self):
569 ds = create_test_data
570
571 partway1 = concat([ds(0), ds(3)], dim="dim1")
572 partway2 = concat([ds(1), ds(4)], dim="dim1")
573 partway3 = concat([ds(2), ds(5)], dim="dim1")
574 expected = concat([partway1, partway2, partway3], data_vars="all", dim="dim2")
575
576 datasets = [[ds(0), ds(1), ds(2)], [ds(3), ds(4), ds(5)]]
577 result = combine_nested(
578 datasets,
579 data_vars="all",
580 concat_dim=["dim1", "dim2"],
581 )
582 assert_equal(result, expected)
583
584 def test_auto_combine_2d_combine_attrs_kwarg(self):
585 ds = lambda x: create_test_data(x, add_attrs=False)

Callers

nothing calls this directly

Calls 4

concatFunction · 0.90
combine_nestedFunction · 0.90
assert_equalFunction · 0.90
dsFunction · 0.70

Tested by

no test coverage detected