MCPcopy
hub / github.com/dask/dask / test_shuffle_larger_array

Function test_shuffle_larger_array

dask/array/tests/test_shuffle.py:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_shuffle_larger_array():
52 arr = da.random.random((15, 15, 15), chunks=(5, 5, 5))
53 indexer = np.arange(0, 15)
54 np.random.shuffle(indexer)
55 indexer = [indexer[0:6], indexer[6:8], indexer[8:9], indexer[9:]]
56 indexer = list(map(list, indexer))
57 take_indexer = list(flatten(indexer))
58 assert_eq(shuffle(arr, indexer, axis=1), arr[..., take_indexer, :])
59
60
61def test_incompatible_indexer(darr):

Callers

nothing calls this directly

Calls 6

flattenFunction · 0.90
assert_eqFunction · 0.90
shuffleFunction · 0.90
randomMethod · 0.45
arangeMethod · 0.45
shuffleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…