MCPcopy Index your code
hub / github.com/dask/dask / test_compute_array_bag

Function test_compute_array_bag

dask/tests/test_base.py:499–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497
498@pytest.mark.skipif("not da")
499def test_compute_array_bag():
500 x = da.arange(5, chunks=2)
501 b = db.from_sequence([1, 2, 3])
502
503 pytest.raises(ValueError, lambda: compute(x, b))
504
505 xx, bb = compute(x, b, scheduler="single-threaded")
506 assert np.allclose(xx, np.arange(5))
507 assert bb == [1, 2, 3]
508
509
510@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 2

computeFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…