MCPcopy Create free account
hub / github.com/dask/dask / test_vindex_merge

Function test_vindex_merge

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

Source from the content-addressed store, hash-verified

3500
3501
3502def test_vindex_merge():
3503 from dask.array.core import _vindex_merge
3504
3505 locations = [1], [2, 0]
3506 values = [np.array([[1, 2, 3]]), np.array([[10, 20, 30], [40, 50, 60]])]
3507
3508 assert (
3509 _vindex_merge(locations, values)
3510 == np.array([[40, 50, 60], [1, 2, 3], [10, 20, 30]])
3511 ).all()
3512
3513
3514def test_vindex_identity():

Callers

nothing calls this directly

Calls 2

_vindex_mergeFunction · 0.90
allMethod · 0.45

Tested by

no test coverage detected