From be839328975d6cb6e0c74e5f4af720babe2c6d3d Mon Sep 17 00:00:00 2001 From: mlauer154 Date: Thu, 22 Feb 2024 17:42:00 -0600 Subject: [PATCH] Added a check to make sure airfoil selection is not empty when running XFOIL --- pymead/gui/gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymead/gui/gui.py b/pymead/gui/gui.py index d5ad4228..958499c1 100644 --- a/pymead/gui/gui.py +++ b/pymead/gui/gui.py @@ -1135,6 +1135,9 @@ def single_airfoil_viscous_analysis(self): # coords = tuple(self.mea.deepcopy().airfoils[xfoil_settings['airfoil']].get_coords( # body_fixed_csys=False, as_tuple=True)) + if xfoil_settings["airfoil"] == "": + self.disp_message_box("An airfoil was not chosen for analysis") + return coords = self.geo_col.container()["airfoils"][xfoil_settings["airfoil"]].get_coords_selig_format() aero_data, _ = calculate_aero_data(xfoil_settings['airfoil_analysis_dir'],