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

Function test_take_sorted

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

Source from the content-addressed store, hash-verified

331
332
333def test_take_sorted():
334 chunks, dsk = take("y-y", "x", [(20, 20, 20, 20)], [1, 3, 5, 47], axis=0)
335 assert len(dsk) == 6
336 assert chunks == ((4,),)
337 chunks, dsk = take("y", "x", [(20, 20, 20, 20)], np.arange(0, 80), axis=0)
338 assert len(dsk) == 4
339 assert chunks == ((20, 20, 20, 20),)
340
341
342def test_slicing_chunks():

Callers

nothing calls this directly

Calls 2

takeFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected