I would try to include a try-except clause around that comparison like that:

    try:
        if threshold > maxThreshold:
            maxThreshold = threshold
    except ValueError:
        print(threshold,maxThreshold)

and see what the values are. May be one of them is None or NaN.


>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a1be6962-607a-4312-82cc-a05bd4df9751n%40googlegroups.com.

Reply via email to