Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix CI errors in NumPy 2.3.1 #1163

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

Merged
merged 2 commits into from
Jul 4, 2025

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Jul 4, 2025

This PR fixes a couple of CI errors that arose in NumPy 2.3.1 and that hadn't shown up prior to this:

  • In optimal.py, there was a bug in saving old values of an array, where copy() should have been used.
  • In lti.py, there seems to be a difference in the way numpy.multiply returns values (perhaps due to rounding?) that was causing transfer functions with complex coefficients when using c2d.

Fixes for both are very small and I'll merge this quickly so that I can release 0.10.2 this weekend.

@coveralls
Copy link

Coverage Status

coverage: 94.745%. remained the same
when pulling a359e8b on murrayrm:fix_optimal-03Jul2024
into aa92b65 on python-control:main.

@murrayrm murrayrm added this to the 0.10.2 milestone Jul 4, 2025
@murrayrm murrayrm merged commit 2745b12 into python-control:main Jul 4, 2025
24 checks passed
@murrayrm murrayrm mentioned this pull request Jul 5, 2025
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

Successfully merging this pull request may close these issues.

2 participants