(value, nfinite, result)
return nfinite, result
Calculate the window sum with new value.
Calculate the window sum with new value.
Calculate the window sum with new value .
def put_sum(value, nfinite, result):
    """Calculate the window sum with new value."""
    if numpy.isfinite(value):
        nfinite += 1
        result += value

    return nfinite, result
def put_sum ( value , nfinite , result ) : if numpy . isfinite ( value ) : nfinite += 1 result += value return nfinite , result