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

Method test_indexing

xarray/tests/test_dask.py:113–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 assert rechunked.chunksizes == expected_chunksizes
112
113 def test_indexing(self):
114 u = self.eager_var
115 v = self.lazy_var
116 self.assertLazyAndIdentical(u[0], v[0])
117 self.assertLazyAndIdentical(u[:1], v[:1])
118 self.assertLazyAndIdentical(u[[0, 1], [0, 1, 2]], v[[0, 1], [0, 1, 2]])
119
120 @pytest.mark.parametrize(
121 "expected_data, index",

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected