Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_vindex_negative
Function
test_vindex_negative
dask/array/tests/test_array_core.py:3493–3498 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3491
3492
3493
def
test_vindex_negative():
3494
x = np.arange(10)
3495
d = da.from_array(x, chunks=(5, 5))
3496
3497
result = d.vindex[np.array([0, -1])]
3498
assert_eq(result, x[np.array([0, -1])])
3499
3500
3501
def
test_vindex_errors():
Callers
nothing calls this directly
Calls
2
assert_eq
Function · 0.90
arange
Method · 0.45
Tested by
no test coverage detected