diff --git a/aviary/visualization/aircraft_3d_model.py b/aviary/visualization/aircraft_3d_model.py index e517dc008..2adbf26fb 100644 --- a/aviary/visualization/aircraft_3d_model.py +++ b/aviary/visualization/aircraft_3d_model.py @@ -298,14 +298,15 @@ def get_variable_from_case(self, var_prom_name, units=None): Value of the variable. """ try: - val = self._final_case[var_prom_name] + val = self._final_case.get_val(var_prom_name, units=units) return float(val) except KeyError as e: pass abs2prom = self._problem_metadata["abs2prom"] for abs_name, prom_name in abs2prom["input"].items(): - if prom_name == var_prom_name: + # the phrase "_OVERRIDE" in a variable indicates it is a calculated value that we are discarding + if prom_name == var_prom_name and '_OVERRIDE' not in abs_name: val = self._final_case.get_val(abs_name, units=units) return float(val)