()
| 2754 | |
| 2755 | |
| 2756 | def test_optimize(): |
| 2757 | x = np.arange(5).astype("f4") |
| 2758 | a = da.from_array(x, chunks=(2,)) |
| 2759 | expr = a[1:4] + 1 |
| 2760 | result = optimize(expr.dask, expr.__dask_keys__()) |
| 2761 | assert isinstance(result, dict) |
| 2762 | assert all(key in result for key in expr.__dask_keys__()) |
| 2763 | |
| 2764 | |
| 2765 | def test_slicing_with_non_ndarrays(): |
nothing calls this directly
no test coverage detected