Permalink
Browse files

save wind_gust allways with one decimal place (0.2 instead of 0.199999)

  • Loading branch information...
debrunner committed Jan 20, 2018
1 parent d169164 commit 28efd5a170089f939f6b089400ce00d84ec789e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 wflogger/collector/aggregator.py
@@ -161,7 +161,7 @@ def get_data(self):
# Wind gust cannot be smaller than wind average
# (might happen due to different sampling periods)
if data['wind'] <= self._wind_gust:
data['wind_gust'] = self._wind_gust
data['wind_gust'] = round(self._wind_gust, 1)
else:
data['wind_gust'] = round(data['wind'], 1)
else:

0 comments on commit 28efd5a

Please sign in to comment.