()
| 410 | |
| 411 | |
| 412 | def test_map_overlap_multiarray_defaults(): |
| 413 | # Check that by default, chunk alignment and arrays of varying dimensionality |
| 414 | # are supported by with no effect on result shape |
| 415 | # (i.e. defaults are pass-through to map_blocks) |
| 416 | x = da.ones((10,), chunks=10) |
| 417 | y = da.ones((1, 10), chunks=5) |
| 418 | z = da.map_overlap(lambda x, y: x + y, x, y, boundary="none") |
| 419 | # func should be called twice and get (5,) and (1, 5) arrays of ones each time |
| 420 | assert_eq(z.shape, (1, 10)) |
| 421 | assert_eq(z.sum(), 20.0) |
| 422 | |
| 423 | |
| 424 | def test_map_overlap_multiarray_different_depths(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…