MCPcopy
hub / github.com/dask/dask / test_optimize

Function test_optimize

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

Source from the content-addressed store, hash-verified

2764
2765
2766def test_optimize():
2767 x = np.arange(5).astype("f4")
2768 a = da.from_array(x, chunks=(2,))
2769 expr = a[1:4] + 1
2770 result = optimize(expr.dask, expr.__dask_keys__())
2771 assert isinstance(result, dict)
2772 assert all(key in result for key in expr.__dask_keys__())
2773
2774
2775def test_slicing_with_non_ndarrays():

Callers

nothing calls this directly

Calls 5

optimizeFunction · 0.90
allFunction · 0.85
astypeMethod · 0.45
arangeMethod · 0.45
__dask_keys__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…