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

Function test_fromfunction

dask/array/tests/test_creation.py:707–715  ·  view source on GitHub ↗
(func, dtype, kwargs)

Source from the content-addressed store, hash-verified

705 ],
706)
707def test_fromfunction(func, dtype, kwargs):
708 a = np.fromfunction(func, shape=(5, 5), dtype=dtype, **kwargs)
709 d = da.fromfunction(func, shape=(5, 5), chunks=(2, 2), dtype=dtype, **kwargs)
710
711 assert_eq(d, a)
712
713 d2 = da.fromfunction(func, shape=(5, 5), chunks=(2, 2), dtype=dtype, **kwargs)
714
715 assert same_keys(d, d2)
716
717
718def test_repeat():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
same_keysFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…