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

Function test_rechunk_same

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

Source from the content-addressed store, hash-verified

285
286
287def test_rechunk_same():
288 x = da.ones((24, 24), chunks=(4, 8))
289 y = x.rechunk(x.chunks)
290 if da._array_expr_enabled():
291 assert x.optimize()._name == y.optimize()._name
292 else:
293 assert x is y
294
295
296def test_rechunk_same_fully_unknown():

Callers

nothing calls this directly

Calls 3

onesMethod · 0.45
rechunkMethod · 0.45
optimizeMethod · 0.45

Tested by

no test coverage detected