()
| 198 | |
| 199 | |
| 200 | def test_gh3937(): |
| 201 | # test for github issue #3937 |
| 202 | x = da.from_array([1, 2, 3.0], (2,)) |
| 203 | x = da.concatenate((x, [x[-1]])) |
| 204 | y = x.rechunk((2,)) |
| 205 | # This will produce Integral type indices that are not ints (np.int64), failing |
| 206 | # the optimizer |
| 207 | y = da.coarsen(np.sum, y, {0: 2}) |
| 208 | # How to trigger the optimizer explicitly? |
| 209 | y.compute() |
| 210 | |
| 211 | |
| 212 | def test_double_dependencies(): |