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

Function test_from_delayed

dask/array/tests/test_array_core.py:3896–3900  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3894
3895
3896def test_from_delayed():
3897 v = delayed(np.ones)((5, 3))
3898 x = from_delayed(v, shape=(5, 3), dtype=np.ones(0).dtype)
3899 assert isinstance(x, Array)
3900 assert_eq(x, np.ones((5, 3)))
3901
3902
3903def test_from_delayed_meta():

Callers

nothing calls this directly

Calls 4

delayedFunction · 0.90
from_delayedFunction · 0.90
assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…