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

Function test_from_func

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

Source from the content-addressed store, hash-verified

3156
3157
3158def test_from_func():
3159 x = np.arange(10)
3160 f = lambda n: n * x
3161 d = from_func(f, (10,), x.dtype, kwargs={"n": 2})
3162
3163 assert d.shape == x.shape
3164 assert d.dtype == x.dtype
3165 assert_eq(d, 2 * x)
3166 assert same_keys(d, from_func(f, (10,), x.dtype, kwargs={"n": 2}))
3167
3168
3169def test_concatenate3_2():

Callers

nothing calls this directly

Calls 4

from_funcFunction · 0.90
assert_eqFunction · 0.90
same_keysFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…