airinnova / airfoils

:large_orange_diamond: Object-oriented airfoils (aerofoils) for Python
https://airfoils.readthedocs.io/
Apache License 2.0
31 stars 5 forks source link

Need better check for ordering of x-values #1

Open aarondettmann opened 4 years ago

aarondettmann commented 4 years ago

Passing same, consecutive x-coordinates to Scipy's interp1d method results in an error. Well-defined airfoil coordinates should not have this issue, but in practice this case does still occur. Currently, we check for unique x-values (see), but this may not be a general solution (e.g. for airfoils with high curvature at the leading edge).