Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in post_stall_coefficients for numpy > 1.23 #634

Open
MarcusBack opened this issue Nov 23, 2022 · 0 comments
Open

Bug in post_stall_coefficients for numpy > 1.23 #634

MarcusBack opened this issue Nov 23, 2022 · 0 comments

Comments

@MarcusBack
Copy link

Numpy 1.23 introduces updates to multidimensional indexing which results in error when designing propeller.

Change required on this line (remove square brackets and use numpy > operator):

Warning from numpy 1.22.4

 FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
    CL2[con3] = -0.032*(alpha[con3]/Units.deg-92.0) + RCL2*((alpha[con3]-92.*Units.deg)/(51.0*Units.deg))**N2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant