Sfoglia il codice sorgente

initialize the values with None

Sven Czarnian 3 anni fa
parent
commit
46e04fca23
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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