MCPcopy Index your code
hub / github.com/dask/dask / test_blockdims_from_blockshape

Function test_blockdims_from_blockshape

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

Source from the content-addressed store, hash-verified

2028
2029
2030def test_blockdims_from_blockshape():
2031 assert blockdims_from_blockshape((10, 10), (4, 3)) == ((4, 4, 2), (3, 3, 3, 1))
2032 pytest.raises(TypeError, lambda: blockdims_from_blockshape((10,), None))
2033 assert blockdims_from_blockshape((1e2, 3), [1e1, 3]) == ((10,) * 10, (3,))
2034 assert blockdims_from_blockshape((np.int8(10),), (5,)) == ((5, 5),)
2035
2036
2037def test_coerce():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…