Ejemplo n.º 1
0
def cond():
    if count_available_elements(WINDVAR) >= N:
        x = remove_elements(WINDVAR, N)
        #print x
        a = np.average(x)
        #print "[INFO] Average windspeed: {0}".format(a)
        if a > THRESHOLD:
            return True
        else:
            print "[INFO] wind speed normal."
    return False
Ejemplo n.º 2
0
def cond():
    return count_available_elements(label) > N