MCPcopy
hub / github.com/dask/dask / test_persist_array

Function test_persist_array

dask/tests/test_base.py:389–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387
388@pytest.mark.skipif("not da")
389def test_persist_array():
390 from dask.array.utils import assert_eq
391
392 arr = np.arange(100).reshape((10, 10))
393 x = da.from_array(arr, chunks=(5, 5))
394 x = (x + 1) - x.mean(axis=0)
395 y = x.persist()
396
397 assert_eq(x, y)
398 assert set(y.dask).issubset(x.dask)
399 assert len(y.dask) == y.npartitions
400
401
402@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 6

assert_eqFunction · 0.90
setClass · 0.85
reshapeMethod · 0.80
arangeMethod · 0.45
meanMethod · 0.45
persistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…