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

Function test_from_func

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

Source from the content-addressed store, hash-verified

3146
3147
3148def test_from_func():
3149 x = np.arange(10)
3150 f = lambda n: n * x
3151 d = from_func(f, (10,), x.dtype, kwargs={"n": 2})
3152
3153 assert d.shape == x.shape
3154 assert d.dtype == x.dtype
3155 assert_eq(d, 2 * x)
3156 assert same_keys(d, from_func(f, (10,), x.dtype, kwargs={"n": 2}))
3157
3158
3159def 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