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