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

Function test_warn_bad_rechunking

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

Source from the content-addressed store, hash-verified

4092
4093
4094def test_warn_bad_rechunking():
4095 x = da.ones((20, 20), chunks=(20, 1))
4096 y = da.ones((20, 20), chunks=(1, 20))
4097
4098 with pytest.warns(da.core.PerformanceWarning, match="factor of 20"):
4099 x + y
4100
4101
4102def test_concatenate_stack_dont_warn():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected