Skip to content

Commit

Permalink
Added a check to make sure airfoil selection is not empty when runnin…
Browse files Browse the repository at this point in the history
…g XFOIL
  • Loading branch information
mlauer154 committed Feb 22, 2024
1 parent 42c5bbe commit be83932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymead/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit be83932

Please sign in to comment.