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

Method test_2d

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

Source from the content-addressed store, hash-verified

52 assert_combined_tile_ids_equal(expected, actual)
53
54 def test_2d(self):
55 ds = create_test_data
56 input = [[ds(0), ds(1)], [ds(2), ds(3)], [ds(4), ds(5)]]
57
58 expected = {
59 (0, 0): ds(0),
60 (0, 1): ds(1),
61 (1, 0): ds(2),
62 (1, 1): ds(3),
63 (2, 0): ds(4),
64 (2, 1): ds(5),
65 }
66 actual: dict[tuple[int, ...], Dataset] = _infer_concat_order_from_positions(
67 input
68 )
69 assert_combined_tile_ids_equal(expected, actual)
70
71 def test_3d(self):
72 ds = create_test_data

Callers

nothing calls this directly

Calls 3

dsFunction · 0.70

Tested by

no test coverage detected