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

Function test_auto_chunks

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

Source from the content-addressed store, hash-verified

5557
5558
5559def test_auto_chunks():
5560 chunks = ((1264, 1264, 1264, 1264, 1264, 1264, 1045), (1264, 491))
5561 shape = sum(chunks[0]), sum(chunks[1])
5562 result = normalize_chunks(
5563 ("auto", "auto"), shape=shape, dtype="int32", previous_chunks=chunks
5564 )
5565 assert result == ((8629,), (1755,))
5566
5567
5568def test_auto_chunks_h5py():

Callers

nothing calls this directly

Calls 2

normalize_chunksFunction · 0.90
sumFunction · 0.50

Tested by

no test coverage detected