From 1b53084e8cf09e99f19f6990206ac510064cf2f0 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 22 Dec 2021 13:27:35 +0100 Subject: [PATCH] add better differences to check if arrival candidates exist --- aman/sys/aco/Node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aman/sys/aco/Node.py b/aman/sys/aco/Node.py index ed2af92..5aba418 100644 --- a/aman/sys/aco/Node.py +++ b/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: