(value, nfinite, result, arr, idx, win_size)
return nfinite, result
Calculate the window max without old value.
Calculate the window max without old value.
Calculate the window max without old value .
def pop_max(value, nfinite, result, arr, idx, win_size):
    """Calculate the window max without old value."""
    if numpy.isfinite(value):
        nfinite -= 1
        if nfinite:
            if value == result:
                return calc_max(arr, idx, win_size)
        else:
            result = numpy.nan

    return nfinite, result
def pop_max ( value , nfinite , result , arr , idx , win_size ) : if numpy . isfinite ( value ) : nfinite -= 1 if nfinite : if value == result : return calc_max ( arr , idx , win_size ) else : result = numpy . nan return nfinite , result