Skip to content

Commit

Permalink
Oops, missing a call to round here..
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed Nov 16, 2020
1 parent 013f9dc commit dc8faa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyecowitt/ecowitt.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def convert_units(self, data):
data["maxdailygustms"] = round(data["maxdailygust"] * mph_ms, 2)
if "windspdmph_avg10m" in data:
data["windspdmph_avg10m"] = float(data["windspdmph_avg10m"])
data["windspdkmh_avg10m"] = float(data["windspdmph_avg10m"]
* mph_kmh, 2)
data["windspdms_avg10m"] = float(data["windspdmph_avg10m"]
* mph_ms, 2)
data["windspdkmh_avg10m"] = round(float(data["windspdmph_avg10m"]
* mph_kmh), 2)
data["windspdms_avg10m"] = round(float(data["windspdmph_avg10m"]
* mph_ms), 2)

# distances
if "rainratein" in data:
Expand Down

0 comments on commit dc8faa1

Please sign in to comment.