Closed carsonwmoon closed 2 weeks ago
Thank you for the report!
This is an issue I've been tracking lately, and it has to do with one of the recently-added airfoils to the built-in airfoil database, called "hm50". (This particular airfoil comes from the TRACfoil database.) Basically this airfoil has a near-zero trailing edge angle, which causes shapely
to raise a geometric error upon repaneling (since it looks like a self-intersecting shape). This is a bit of an edge case, since most practical airfoils have a nonzero trailing edge angle.
Here's the airfoil, for a closer look at the zero-angle trailing edge:
If this is the only error you're seeing, feel free to safely ignore this (as it will not have an effect outside of this edge case). In the meantime, we're working on a solution to handle these airfoils more gracefully in testing.
Bug Description / Observed Behavior
The following pytest error was returned after a fresh install of
pip install aerosandbox[full,test]
andasb.run_tests()
in python.================================================================================== FAILURES ================================================================================== __ test_repaneling_validity __
E AssertionError: Airfoil hm50 failed repaneling validity check with similarity nan! E assert nan > (1 - (3 / 484)) E + where 484 = <bound method Polygon.n_points of Airfoil hm50 (484 points)>() E + where <bound method Polygon.n_points of Airfoil hm50 (484 points)> = Airfoil hm50 (484 points).n_points
.conda\Lib\site-packages\aerosandbox\geometry\airfoil\test_airfoil\test_airfoil_repaneling.py:34: AssertionError
Steps to Reproduce
pip install aerosandbox[full,test]
Expected Behavior
====================== 250 passed, 36 warnings in 17.89s =======================
System Information
Other Information