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

Function _sum

dask/array/tests/test_reductions.py:31–33  ·  view source on GitHub ↗
(arr, **kwargs)

Source from the content-addressed store, hash-verified

29 numel = da.reductions.nannumel
30
31 def _sum(arr, **kwargs):
32 n = np.sum(np.ma.masked_where(np.isnan(arr), arr), **kwargs)
33 return n.filled(0) if isinstance(n, np.ma.MaskedArray) else n
34
35 else:
36 numel = da.reductions.numel

Callers 1

test_numelFunction · 0.85

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected