simulator - small bug

32 views
Skip to first unread message

Graham Eddy

unread,
Aug 11, 2020, 3:57:04 AM8/11/20
to weewx-user
given i have augmented my VP2 with GW1000 for its extra sensors, i have extended Simulator driver to produce data_type values corresponding to those new sensors. then i used the ‘observations’ parameter in [Simulator] to exclude some data_types and got exception on list changed while iterating over it

i’m using a github clone but not a fork so i can’t create a pull request.
the fix is about line 153 in weewx.simulator:
#GJE            for obs in self.observations:
            for obs in list(self.observations):


Tom Keffer

unread,
Aug 11, 2020, 8:33:41 AM8/11/20
to weewx-user
Thanks, Graham. Fixed in commit 724dacc

-tk

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/D5B1F8E7-2E0E-4F6F-A163-A5A1C228EEBB%40gmail.com.
Reply all
Reply to author
Forward
0 new messages