()
| 3500 | |
| 3501 | |
| 3502 | def 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 | |
| 3514 | def test_vindex_identity(): |
nothing calls this directly
no test coverage detected