Commit c68d790
authored
Fix one-character typo in XFoil.alpha() causing TypeError with list input (#177)
Possibly the smallest PR you'll ever review.
`alphas[alpha <= start_at]` on line _**655**_ should be `alphas[alphas
<= start_at]`.
The preceding line gets it right; this one missed the rename from
`alpha` to `alphas`.
This causes a `TypeError` when `alpha` is passed as a Python list (the
default
`start_at=0` triggers the code path), contradicting the docstring which
explicitly allows "a float or an iterable of floats, such as an array".1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| |||
0 commit comments