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

Method test_LazilyIndexedArray

xarray/tests/test_variable.py:3003–3017  ·  view source on GitHub ↗
(self, load_async)

Source from the content-addressed store, hash-verified

3001 @pytest.mark.asyncio
3002 @pytest.mark.parametrize("load_async", [True, False])
3003 async def test_LazilyIndexedArray(self, load_async):
3004 v = Variable(dims=("x", "y"), data=LazilyIndexedArray(self.d))
3005 await self.check_orthogonal_indexing(v, load_async)
3006 await self.check_vectorized_indexing(v, load_async)
3007 # doubly wrapping
3008 v = Variable(
3009 dims=("x", "y"),
3010 data=LazilyIndexedArray(LazilyIndexedArray(self.d)),
3011 )
3012 await self.check_orthogonal_indexing(v, load_async)
3013 # hierarchical wrapping
3014 v = Variable(
3015 dims=("x", "y"), data=LazilyIndexedArray(NumpyIndexingAdapter(self.d))
3016 )
3017 await self.check_orthogonal_indexing(v, load_async)
3018
3019 @pytest.mark.asyncio
3020 @pytest.mark.parametrize("load_async", [True, False])

Callers

nothing calls this directly

Calls 5

VariableClass · 0.90
LazilyIndexedArrayClass · 0.90

Tested by

no test coverage detected