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

Function test_min_max_round_funcs

dask/array/tests/test_numpy_compat.py:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_min_max_round_funcs():
36 # Regression test for gh-5031
37 image = da.from_array(np.array([[0, 1], [1, 2]]), chunks=(1, 2))
38 # These use __array_function__ (and min/max/round are aliased,
39 # to amin/amax/round_ in numpy)
40 assert int(np.min(image)) == 0
41 assert int(np.max(image)) == 2
42 assert np.round(image)[1, 1] == 2

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
roundMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…