Explorar el Código

initialize the values with None

Sven Czarnian hace 3 años
padre
commit
46e04fca23
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      aman/sys/WeatherModel.py

+ 3 - 0
aman/sys/WeatherModel.py

@@ -9,6 +9,9 @@ class WeatherModel:
     def __init__(self, gaforId, weather : Weather):
         self.Gafor = gaforId
         self.Weather = weather
+        self.Altitudes = None
+        self.Directions = None
+        self.Windspeeds = None
         self.WindDirectionModel = None
         self.WindSpeedModel = None
         self.LastWeatherUpdate = None