Good point. I went with

val != val


Commit  0bce71e
<https://github.com/weewx/weewx/commit/0bce71e16587b017b474434032919a0310a0d6bd>


-tk

On Mon, Nov 20, 2017 at 9:47 PM, Thomas Carlin <[email protected]>
wrote:

> True, didn't think about that.  It's dirty, but
>
> str(val) == 'nan'
>
> would work also.  Aside from isnan(), that is the most readable solution
> that I am aware of.
>
>
> On Monday, November 20, 2017 at 8:33:28 PM UTC-7, gjr80 wrote:
>>
>> Might have to be careful we don't break python 2.5 compatibility, I think
>> isnan() was introduced in python 2.6.
>>
>> Gary
>>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to