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

Function test_rechunk_zero_dim_array_II

dask/array/tests/test_rechunk.py:280–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278
279
280def test_rechunk_zero_dim_array_II():
281 x = da.zeros((4, 0, 6, 10), chunks=3)
282 y = x.rechunk({0: 4, 2: 2})
283 assert y.chunks == ((4,), (0,), (2, 2, 2), (3, 3, 3, 1))
284 assert_eq(x, y)
285
286
287def test_rechunk_same():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
zerosMethod · 0.45
rechunkMethod · 0.45

Tested by

no test coverage detected