scipp.nansum#

scipp.nansum(x, dim=None)#

Sum of elements in the input ignoring NaN’s.

See scipp.sum() on how rounding errors for float32 inputs are handled.

Parameters:
Returns:

Same type as x – The sum of the input values which are not NaN.

See also

scipp.sum

Compute the sum without special handling of NaN.