GeezerVison is showing github.com — Fix CI warnings by murrayrm · Pull Request #955 · python-control/python-control
Conversation
murrayrm
commented
Dec 29, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR makes a bunch of small changes to remove warning messages in the GitHub actions CI runs:
- Access scalar NumPy arrays using
item() (old usage is newly deprecated in NumPy).
- Change
set_tight_layout(True) to fig.set_layout_engine('tight') (newly deprecated in Matplotlib).
- Update unit tests using deprecated functionality to use current functionality.
- Add warning filters for internal calls to
connect (which are OK for now).
- Avoid calling tf2zpk with zero in the numerator (SciPy generates warning).
- Fix up some strings that had newly deprecated escape sequences (by using raw strings)
- Turn off warnings for optimal control problems that fail to hit desired precision (but still return valid answers)
Note: it is likely that this PR will conflict with #953. We should probably merge #953 first and then rebase this PR since the changes here are pretty straightforward.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coveralls
commented
Dec 30, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

coverage: 94.78% (-0.09%) from 94.866%
when pulling dc74493 on murrayrm:fixwarnings-23Dec2023
into eb0f3f9 on python-control:main.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks like there were no conflicts, so going ahead and merging.
@bnavigator: FYI (and not really for this PR), I tried updating GitHub actions to use Python 3.12 but mamba caused problems, so I'm waiting until that clears. You can find the attempt here.
|
bnavigator reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.