Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_empty_slice
Function
test_empty_slice
dask/array/tests/test_slicing.py:469–473 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
467
468
469
def
test_empty_slice():
470
x = da.ones((5, 5), chunks=(2, 2), dtype=
"i4"
)
471
y = x[:0]
472
473
assert_eq(y, np.ones((5, 5), dtype=
"i4"
)[:0])
474
475
476
def
test_multiple_list_slicing():
Callers
nothing calls this directly
Calls
2
assert_eq
Function · 0.90
ones
Method · 0.45
Tested by
no test coverage detected