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

Function test_take

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

Source from the content-addressed store, hash-verified

321
322
323def test_take():
324 chunks, dsk = take("y-y", "x", [(20, 20, 20, 20)], [5, 1, 47, 3], axis=0)
325 assert len(dsk) == 6
326 assert chunks == ((4,),)
327
328 chunks, dsk = take("y-y", "x", [(20, 20, 20, 20), (20, 20)], [5, 1, 47, 3], axis=0)
329 assert len(dsk) == 9
330 assert chunks == ((4,), (20, 20))
331
332
333def test_take_sorted():

Callers

nothing calls this directly

Calls 1

takeFunction · 0.90

Tested by

no test coverage detected