MCPcopy
hub / github.com/dask/dask / test_vindex_merge

Function test_vindex_merge

dask/array/tests/test_array_core.py:3512–3521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3510
3511
3512def test_vindex_merge():
3513 from dask.array.core import _vindex_merge
3514
3515 locations = [1], [2, 0]
3516 values = [np.array([[1, 2, 3]]), np.array([[10, 20, 30], [40, 50, 60]])]
3517
3518 assert (
3519 _vindex_merge(locations, values)
3520 == np.array([[40, 50, 60], [1, 2, 3], [10, 20, 30]])
3521 ).all()
3522
3523
3524def test_vindex_identity():

Callers

nothing calls this directly

Calls 2

_vindex_mergeFunction · 0.90
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…