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

Function test_blockwise_numpy_arg

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

Source from the content-addressed store, hash-verified

781
782
783def test_blockwise_numpy_arg():
784 x = da.arange(10, chunks=(5,))
785 y = np.arange(1000)
786
787 x = x.map_blocks(lambda x, y: x, 1.0)
788 x = x.map_blocks(lambda x, y: x, "abc")
789 x = x.map_blocks(lambda x, y: x, y)
790 x = x.map_blocks(lambda x, y: x, "abc")
791 x = x.map_blocks(lambda x, y: x, 1.0)
792 x = x.map_blocks(lambda x, y, z: x, "abc", np.array(["a", "b"], dtype=object))
793 assert_eq(x, np.arange(10))
794
795
796def test_bag_array_conversion():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
arangeMethod · 0.45
map_blocksMethod · 0.45

Tested by

no test coverage detected