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

Function test_args_delayed

dask/array/tests/test_atop.py:814–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

812
813
814def test_args_delayed():
815 x = da.arange(10, chunks=(5,))
816 y = dask.delayed(lambda: 100)()
817
818 z = da.blockwise(add, "i", x, "i", y, None, dtype=x.dtype)
819 assert_eq(z, np.arange(10) + 100)
820
821 z = da.blockwise(lambda x, y: x + y, "i", x, "i", y=y, dtype=x.dtype)
822 assert_eq(z, np.arange(10) + 100)
823
824
825@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected