()
| 2764 | |
| 2765 | |
| 2766 | def 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 | |
| 2775 | def test_slicing_with_non_ndarrays(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…