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

Function test_reductions_toplevel

dask/array/_array_expr/tests/test_collection.py:95–99  ·  view source on GitHub ↗
(arr, func)

Source from the content-addressed store, hash-verified

93 ],
94)
95def test_reductions_toplevel(arr, func):
96 # var and std need __array_function__
97 result = getattr(da, func)(arr, axis=0)
98 expected = getattr(np, func)(arr.compute(), axis=0)
99 assert_eq(result, expected)
100
101
102def test_from_array():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected