MCPcopy Index your code
hub / github.com/dask/dask / test_map_overlap_multiarray_defaults

Function test_map_overlap_multiarray_defaults

dask/array/tests/test_overlap.py:412–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410
411
412def 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
424def test_map_overlap_multiarray_different_depths():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
onesMethod · 0.45
map_overlapMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…