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

Function test_array_function_dask

dask/array/tests/test_array_function.py:43–50  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

41 ],
42)
43def test_array_function_dask(func):
44 x = np.random.default_rng().random((100, 100))
45 y = da.from_array(x, chunks=(50, 50))
46 res_x = func(x)
47 res_y = func(y)
48
49 assert isinstance(res_y, da.Array)
50 assert_eq(res_y, res_x)
51
52
53@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
funcFunction · 0.70
randomMethod · 0.45

Tested by

no test coverage detected