From d191da2303c0ca57a042c45f31cf52f8f8217214 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Mon, 18 Oct 2021 12:42:31 +0200 Subject: [PATCH] store the WTC in the inbound itself --- aman/types/Inbound.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aman/types/Inbound.py b/aman/types/Inbound.py index 6c3173a..7b3aafe 100644 --- a/aman/types/Inbound.py +++ b/aman/types/Inbound.py @@ -37,6 +37,12 @@ class Inbound: self.PlannedRunway = None self.PlannedStar = None self.ArrivalCandidates = {} + self.WTC = None + + # analyze the WTC + wtc = report.aircraft.wtc.upper() + if 'L' == wtc or 'M' == wtc or 'H' == wtc or 'J' == wtc: + self.WTC = wtc # search performance data -> fallback to A320 if self.Report.aircraft.type in performanceData.Aircrafts: