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

Function test_common_blockdim

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

Source from the content-addressed store, hash-verified

4036
4037
4038def test_common_blockdim():
4039 assert common_blockdim([(5,), (5,)]) == (5,)
4040 assert common_blockdim([(5,), (2, 3)]) == (2, 3)
4041 assert common_blockdim([(5, 5), (2, 3, 5)]) == (2, 3, 5)
4042 assert common_blockdim([(5, 5), (2, 3, 5)]) == (2, 3, 5)
4043 assert common_blockdim([(5, 2, 3), (2, 3, 5)]) == (2, 3, 2, 3)
4044
4045 assert common_blockdim([(1, 2), (2, 1)]) == (1, 1, 1)
4046 assert common_blockdim([(1, 2, 2), (2, 1, 2), (2, 2, 1)]) == (1, 1, 1, 1, 1)
4047
4048
4049def test_uneven_chunks_that_fit_neatly():

Callers

nothing calls this directly

Calls 1

common_blockdimFunction · 0.90

Tested by

no test coverage detected