From eda72178dd4deba20f8eba2d5b6ebf33e0a7e67d Mon Sep 17 00:00:00 2001 From: Peter Sharpe Date: Wed, 28 Feb 2024 09:47:03 -0500 Subject: [PATCH] suppress warnings --- neuralfoil/gen2_architecture/_basic_data_type.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neuralfoil/gen2_architecture/_basic_data_type.py b/neuralfoil/gen2_architecture/_basic_data_type.py index b3e557d..5244977 100644 --- a/neuralfoil/gen2_architecture/_basic_data_type.py +++ b/neuralfoil/gen2_architecture/_basic_data_type.py @@ -1,3 +1,4 @@ +import warnings import aerosandbox as asb import aerosandbox.numpy as np from dataclasses import dataclass, field @@ -138,7 +139,9 @@ def from_xfoil(cls, xfoil_command=xfoil_command, include_bl_data=True, ) - xf_outputs = xf.alpha(alphas) + with warnings.catch_warnings(): + warnings.filterwarnings("ignore", category=UserWarning) + xf_outputs = xf.alpha(alphas) training_datas = []