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

Method test_1d

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

Source from the content-addressed store, hash-verified

160
161class TestTileIDsFromCoords:
162 def test_1d(self):
163 ds0 = Dataset({"x": [0, 1]})
164 ds1 = Dataset({"x": [2, 3]})
165
166 expected = {(0,): ds0, (1,): ds1}
167 actual, concat_dims = _infer_concat_order_from_coords([ds1, ds0])
168 assert_combined_tile_ids_equal(expected, actual)
169 assert concat_dims == ["x"]
170
171 def test_2d(self):
172 ds0 = Dataset({"x": [0, 1], "y": [10, 20, 30]})

Callers

nothing calls this directly

Calls 3

DatasetClass · 0.90

Tested by

no test coverage detected