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

Function test_common_blockdim

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

Source from the content-addressed store, hash-verified

4043
4044
4045def test_common_blockdim():
4046 assert common_blockdim([(5,), (5,)]) == (5,)
4047 assert common_blockdim([(5,), (2, 3)]) == (2, 3)
4048 assert common_blockdim([(5, 5), (2, 3, 5)]) == (2, 3, 5)
4049 assert common_blockdim([(5, 5), (2, 3, 5)]) == (2, 3, 5)
4050 assert common_blockdim([(5, 2, 3), (2, 3, 5)]) == (2, 3, 2, 3)
4051
4052 assert common_blockdim([(1, 2), (2, 1)]) == (1, 1, 1)
4053 assert common_blockdim([(1, 2, 2), (2, 1, 2), (2, 2, 1)]) == (1, 1, 1, 1, 1)
4054
4055
4056def test_uneven_chunks_that_fit_neatly():

Callers

nothing calls this directly

Calls 1

common_blockdimFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…