mrgmarsh / wfrog

Automatically exported from code.google.com/p/wfrog
GNU General Public License v3.0
0 stars 0 forks source link

Wrong data on wind or gust = 0 #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No wind or gust

What is the expected output? What do you see instead?

send atribute with "0"

2012-05-10 20:05:53,870 ERROR [wflogger] Could not send event to 
<wfcommon.generic.YamlMultiElement object at 0x23a8890>
Traceback (most recent call last):
  File "/usr/lib/wfrog/wflogger/wflogger.py", line 127, in output_loop
    self.collector.send_event(event, context=context)
  File "/usr/lib/wfrog/wfcommon/generic/multi.py", line 62, in _call
    result[name] = r.__getattribute__(attr).__call__(*args, **keywords)
  File "/usr/lib/wfrog/wflogger/collector/flush.py", line 77, in send_event
    self.collector.send_event(event, context)
  File "/usr/lib/wfrog/wfcommon/generic/user.py", line 65, in _call
    return self.target.__getattribute__(attr).__call__(*args, **keywords)
  File "/usr/lib/wfrog/wflogger/collector/base.py", line 52, in send_event
    self._report_wind(event.mean.speed, event.mean.dir, event.gust.speed, event.gust.dir)
AttributeError: 'Event' object has no attribute 'gust'

Original issue reported on code.google.com by lulek2...@gmail.com on 10 May 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Does it apply to wh1080.py driver?
If so, could it be a duplicate of issue num. 106?

Original comment by jordi.pu...@gmail.com on 10 Aug 2012 at 2:40