(value, nfinite, result)
return nfinite, result
Calculate the window max with new value.
Calculate the window max with new value.
Calculate the window max with new value .
def put_max(value, nfinite, result):
    """Calculate the window max with new value."""
    if numpy.isfinite(value):
        nfinite += 1
        if numpy.isnan(result) or value > result:
            result = value

    return nfinite, result
def put_max ( value , nfinite , result ) : if numpy . isfinite ( value ) : nfinite += 1 if numpy . isnan ( result ) or value > result : result = value return nfinite , result