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

Function test_empty_list

dask/array/tests/test_slicing.py:508–514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

506
507
508def test_empty_list():
509 x = np.ones((5, 5, 5), dtype="i4")
510 dx = da.from_array(x, chunks=2)
511
512 assert_eq(dx[[], :3, :2], x[[], :3, :2])
513 assert_eq(dx[:3, [], :2], x[:3, [], :2])
514 assert_eq(dx[:3, :2, []], x[:3, :2, []])
515
516
517def test_uneven_chunks():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected