Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
280
def
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
287
def
test_rechunk_same():
Callers
nothing calls this directly
Calls
3
assert_eq
Function · 0.90
zeros
Method · 0.45
rechunk
Method · 0.45
Tested by
no test coverage detected