Skip to content

Commit

Permalink
adds a fix for upper_coordinates() and lower_coordinates() with float…
Browse files Browse the repository at this point in the history
… (rather than array) inputs
  • Loading branch information
peterdsharpe committed Aug 15, 2023
1 parent 37b21a9 commit 190e238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aerosandbox/geometry/airfoil/kulfan_airfoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def tall(vector):
y_upper += self.leading_edge_weight * (x_over_c) * (1 - x_over_c) ** (np.length(self.upper_weights) + 0.5)

return np.stack((
x_over_c,
np.reshape(x_over_c, (-1)),
y_upper,
), axis=1)

Expand Down Expand Up @@ -505,7 +505,7 @@ def tall(vector):
y_lower += self.leading_edge_weight * (x_over_c) * (1 - x_over_c) ** (np.length(self.lower_weights) + 0.5)

return np.stack((
x_over_c,
np.reshape(x_over_c, (-1)),
y_lower
), axis=1)

Expand Down

0 comments on commit 190e238

Please sign in to comment.