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

Function test_blockwise_no_array_args

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

Source from the content-addressed store, hash-verified

717
718
719def test_blockwise_no_array_args():
720 def f(dtype):
721 return np.ones((2, 3), dtype)
722
723 x = da.blockwise(
724 f, "ab", np.float32, None, new_axes={"a": 2, "b": (3, 3)}, dtype=np.float32
725 )
726 assert x.chunks == ((2,), (3, 3))
727 assert_eq(x, np.ones((2, 6), np.float32))
728
729
730def test_blockwise_kwargs():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected