浏览代码

add better differences to check if arrival candidates exist

Sven Czarnian 3 年之前
父节点
当前提交
1b53084e8c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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: