Skip to content

Commit

Permalink
Overrides fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
joanpc committed Sep 18, 2016
1 parent 00621af commit ea5da32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PI_noaaWeather.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def setClouds(self):

nClouds = len(setClouds)

if not self.data.override_clouds:
if not self.data.override_clouds.value:
for i in range(3):
if nClouds > i:
base, top, cover = setClouds[i]
Expand Down Expand Up @@ -1387,14 +1387,14 @@ def floopCallback(self, elapsedMe, elapsedSim, counter, refcon):
elif p['TS']['int'] == '+':
ts = 1

if not self.data.override_precipitation:
if not self.data.override_precipitation.value:
self.weather.thunderstorm.value = ts
self.weather.precipitation.value = rain

self.data.metar_precipitation.value = rain
self.data.metar_thunderstorm.value = ts

if not self.data.override_runway_friction:
if not self.data.override_runway_friction.value:
self.weather.runwayFriction.value = friction

self.data.metar_runwayFriction.value = friction
Expand Down

0 comments on commit ea5da32

Please sign in to comment.