From c7fdb351677359f9aa6c20d44d41658fe152d83f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20Sch=C3=BCltke?=
 <florian.schueltke@ilr.rwth-aachen.de>
Date: Wed, 27 Nov 2024 10:45:58 +0100
Subject: [PATCH] rce_workflow (schueltke): fix variable naming bug

---
 .../mission_study_loop/estimate_mission_study_residuals.py  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/UNICADOworkflow/src/mission_study_loop/estimate_mission_study_residuals.py b/UNICADOworkflow/src/mission_study_loop/estimate_mission_study_residuals.py
index 1fb956f..e56c554 100644
--- a/UNICADOworkflow/src/mission_study_loop/estimate_mission_study_residuals.py
+++ b/UNICADOworkflow/src/mission_study_loop/estimate_mission_study_residuals.py
@@ -94,10 +94,10 @@ def estimate_mission_study_residuals(paths_and_names, mission_study_variables, c
 
     # read iteration variables
     m_take_off_max_study = root_of_aircraft_exchange_tree.find("./analysis/mission/study_mission/takeoff_mass/value")
-    if m_take_off_max is not None:
-        m_take_off_max = float(m_take_off_max.text)
+    if m_take_off_max_study is not None:
+        m_take_off_max_study = float(m_take_off_max_study.text)
     else:
-        m_take_off_max = 0
+        m_take_off_max_study = 0
 
     fl_initial_cruise_study = root_of_aircraft_exchange_tree.find(
         "./analysis/mission/study_mission/cruise/cruise_steps@ID=0/altitude/value")
-- 
GitLab