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

Function test_slice_with_floats

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

Source from the content-addressed store, hash-verified

3421
3422
3423def test_slice_with_floats():
3424 d = da.ones((5,), chunks=(3,))
3425 with pytest.raises(IndexError):
3426 d[1.5]
3427 with pytest.raises(IndexError):
3428 d[0:1.5]
3429 with pytest.raises(IndexError):
3430 d[[1, 1.5]]
3431
3432
3433@pytest.mark.parametrize("dtype", [np.int32, np.int64, np.uint32, np.uint64])

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected