i mis-spoke. no assignment in ‘else’ e.g.
windSpeed = 20 if windSpeed == 0 else windSpeed*1.15
note: in this case, if windSpeed is None, then None*1.15 throws an error 
(silently, without enough debug level) and no action is taken i.e. it remains 
None
⊣GE⊢

> On 16 Jan 2025, at 9:33 pm, 'Rory Gillies' via weewx-user 
> <weewx-user@googlegroups.com> wrote:
> 
>> windSpeed = 20 if windSpeed == 0 else windSpeed == windSpeed * 1.15

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/B7922EA6-E0B1-41E8-B931-22D5BEE35F5E%40geddy.au.

Reply via email to