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

Function test_array_compute

dask/diagnostics/tests/test_progress.py:24–32  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

22
23
24def test_array_compute(capsys):
25 pytest.importorskip("numpy")
26 da = pytest.importorskip("dask.array")
27
28 data = da.ones((100, 100), dtype="f4", chunks=(100, 100))
29 with ProgressBar():
30 out = data.sum().compute()
31 assert out == 10000
32 check_bar_completed(capsys)
33
34
35def test_progressbar(capsys):

Callers

nothing calls this directly

Calls 5

ProgressBarClass · 0.90
check_bar_completedFunction · 0.85
onesMethod · 0.45
computeMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…