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

Remove a deprecation warning in numpy 1.25 #626

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Conversation

lfarv
Copy link
Contributor

@lfarv lfarv commented Jul 5, 2023

Lattice.linopt* emits a deprecation warning when running with numpy 1.25. This is noticeable when running the tests. This results from a bug: using an array of shape (1,) instead of a scalar. This has no consequence on the results but is corrected here.

@lfarv lfarv added Python For python AT code bug fix labels Jul 5, 2023
@lfarv lfarv merged commit 1ac8cba into master Jul 31, 2023
31 checks passed
@lfarv lfarv deleted the numpy_deprecation branch July 31, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants