From 74dac0a2c684a22a416b4f132d6bd9b18383f333 Mon Sep 17 00:00:00 2001 From: Peter Sharpe Date: Tue, 27 Feb 2024 08:59:43 -0500 Subject: [PATCH] improves debugging outputs --- aerosandbox/aerodynamics/aero_2D/xfoil.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aerosandbox/aerodynamics/aero_2D/xfoil.py b/aerosandbox/aerodynamics/aero_2D/xfoil.py index 7c5979e1..96a63c08 100644 --- a/aerosandbox/aerodynamics/aero_2D/xfoil.py +++ b/aerosandbox/aerodynamics/aero_2D/xfoil.py @@ -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: @@ -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)):