Ver Fonte

add better differences to check if arrival candidates exist

Sven Czarnian há 3 anos atrás
pai
commit
1b53084e8c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      aman/sys/aco/Node.py

+ 2 - 1
aman/sys/aco/Node.py

@@ -155,7 +155,7 @@ class Node:
         self.PredictedDistanceToIAF = inbound.Report.distanceToIAF
         self.PredictedCoordinate = [ inbound.CurrentPosition.latitude, inbound.CurrentPosition.longitude ]
         self.PredictionTime = referenceTime
-        self.ArrivalCandidates = {}
+        self.ArrivalCandidates = None
         self.Inbound = inbound
 
         if None == referenceTime or None == sequencingConfig:
@@ -185,6 +185,7 @@ class Node:
                 self.PredictedCoordinate = prediction
 
         setEnrouteTime = None == self.Inbound.EnrouteArrivalTime
+        self.ArrivalCandidates = {}
 
         # calculate the timings for the different arrival runways
         for identifier in sequencingConfig.ActiveArrivalRunways: