Skip to content

Commit

Permalink
removing commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
rachealerhard committed Mar 2, 2022
1 parent 5972e37 commit 794f0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -39,8 +39,8 @@ def import_airfoil_polars(airfoil_polar_files):
num_polars = 0
for i in range(num_airfoils):
n_p = len(airfoil_polar_files[i])
#if n_p < 3:
#raise AttributeError('Provide three or more airfoil polars to compute surrogate')
if n_p < 3:
raise AttributeError('Provide three or more airfoil polars to compute surrogate')

num_polars = max(num_polars, n_p)

Expand Down
2 changes: 1 addition & 1 deletion trunk/SUAVE/Plots/Performance/Airfoil_Plots.py
Expand Up @@ -346,7 +346,7 @@ def plot_airfoil_aerodynamic_coefficients(airfoil_path, airfoil_polar_paths, lin
CL_sur = a_data.lift_coefficient_surrogates
CD_sur = a_data.drag_coefficient_surrogates

alpha = np.linspace(-16,16,100) #np.asarray(a_data.aoa_from_polar)
alpha = np.linspace(-16,16,100)
n_alpha = len(alpha.T)
alpha = np.reshape(alpha,(n_airfoils,1,n_alpha))
alpha = np.repeat(alpha, n_Re, axis=1)
Expand Down

0 comments on commit 794f0bd

Please sign in to comment.