MCPcopy Create free account
hub / github.com/dask/dask / test_slicing_chunks

Function test_slicing_chunks

dask/array/tests/test_slicing.py:342–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340
341
342def test_slicing_chunks():
343 result, chunks = slice_array("y", "x", ([5, 5], [5, 5]), (1, np.array([2, 0, 3])))
344 assert chunks == ((3,),)
345
346 result, chunks = slice_array(
347 "y", "x", ([5, 5], [5, 5]), (slice(0, 7), np.array([2, 0, 3]))
348 )
349 assert chunks == ((5, 2), (3,))
350
351 result, chunks = slice_array("y", "x", ([5, 5], [5, 5]), (slice(0, 7), 1))
352 assert chunks == ((5, 2),)
353
354
355def test_slicing_with_numpy_arrays():

Callers

nothing calls this directly

Calls 1

slice_arrayFunction · 0.90

Tested by

no test coverage detected