MCPcopy
hub / github.com/dask/dask / test_compute_array

Function test_compute_array

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

Source from the content-addressed store, hash-verified

376
377@pytest.mark.skipif("not da")
378def test_compute_array():
379 arr = np.arange(100).reshape((10, 10))
380 darr = da.from_array(arr, chunks=(5, 5))
381 darr1 = darr + 1
382 darr2 = darr + 2
383 out1, out2 = compute(darr1, darr2)
384 assert np.allclose(out1, arr + 1)
385 assert np.allclose(out2, arr + 2)
386
387
388@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 3

computeFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…