Skip to content

Commit

Permalink
improves debugging outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Feb 27, 2024
1 parent 41e2ff9 commit 74dac0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aerosandbox/aerodynamics/aero_2D/xfoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def _run_xfoil(self,
"XFoil output file is malformed; it doesn't have the expected number of lines.\n"
"For debugging, the raw output file from XFoil is printed below:\n"
+ "\n".join(lines)
+ "\nTitle line: " + title_line
+ "\nColumns: " + str(columns)
)

def str_to_float(s: str) -> float:
Expand Down Expand Up @@ -429,6 +431,9 @@ def str_to_float(s: str) -> float:
"In previous testing, this occurs due to a bug in XFoil itself, with certain input combos.\n"
"For debugging, the raw output file from XFoil is printed below:\n"
+ "\n".join(lines)
+ "\nTitle line: " + title_line
+ "\nColumns: " + str(columns)
+ f"\nIdentified {len(data)} data columns and {len(columns)} header columns."
)

for i in range(len(columns)):
Expand Down

0 comments on commit 74dac0a

Please sign in to comment.