MCPcopy Index your code
hub / github.com/dask/dask / test_keys_from_array

Function test_keys_from_array

dask/tests/test_delayed.py:748–756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746
747
748def test_keys_from_array():
749 pytest.importorskip("numpy")
750 da = pytest.importorskip("dask.array")
751 from dask.array.utils import _check_dsk
752
753 X = da.ones((10, 10), chunks=5).to_delayed().flatten()
754 xs = [delayed(inc)(x) for x in X]
755
756 _check_dsk(xs[0].dask)
757
758
759# Mostly copied from https://github.com/pytoolz/toolz/pull/220

Callers

nothing calls this directly

Calls 5

delayedFunction · 0.90
_check_dskFunction · 0.90
flattenMethod · 0.80
to_delayedMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…