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:
x (
scipp.typing.VariableLike
) – Input data.dim (
Optional
[str
], default:None
) – Optional dimension along which to calculate the sum. If not given, the sum over all dimensions is calculated.
- 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.