Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit b7a4bf2

Browse files
committed
fix check if cl is flat
1 parent 69ec496 commit b7a4bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyFAST/airfoils/Polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def _find_alpha0(alpha, coeff, window, direction='up', value_if_constant = np.na
12741274
The angle alpha0 is found by looking at a zero up crossing in this window, and interpolation is used to find the exact location.
12751275
"""
12761276
# Constant case or only one value
1277-
if np.max(abs((coeff - coeff[0])<1e-8)) or len(coeff) == 1:
1277+
if np.all(abs((coeff - coeff[0])<1e-8)) or len(coeff) == 1:
12781278
if coeff[0] == 0:
12791279
return 0
12801280
else:

0 commit comments

Comments
 (0)