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

Function test_from_delayed

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

Source from the content-addressed store, hash-verified

3884
3885
3886def test_from_delayed():
3887 v = delayed(np.ones)((5, 3))
3888 x = from_delayed(v, shape=(5, 3), dtype=np.ones(0).dtype)
3889 assert isinstance(x, Array)
3890 assert_eq(x, np.ones((5, 3)))
3891
3892
3893def 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