- Notifications
You must be signed in to change notification settings - Fork441
Lint fixes on benchmarks and examples/*.py#1135
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The CI errors are also showing up in#1133, so probably something changed on the GitHub Actions end of things. I'll set up a new issue to track that. |
coveralls commentedMar 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks. I can't reproduce the notebook conversion failure locally. I've attached the output of I see there's already a bug on Pmw for |
Sorry for the delay in reviewing this. All of the changes look good to me. Some comments on your comments:
I think it would be fine to move this to
Perhaps flag some of these as separate issues? For the specific case of
It would be nice to run lint on the notebooks. I agree that for MATLAB users, it will be convenient to use |
394e1c2
intopython-control:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
I don't think these are too controversial.
CI failures
I see two failures on CI , but I can't see that these changes caused them:
first, in
doctest-linux
:https://github.com/roryyorke/python-control/actions/runs/13612156165/job/38050709282which seems to besphinx-doc/sphinx#13352.
Then in
install-examples
:https://github.com/roryyorke/python-control/actions/runs/13612156159/job/38050709274I'll install jupyterlab in my dev environment and see if I can reproduce this. I can't see that changing *.py files in examples could cause this.
tfvis.py and
PwmPmwWhen I ran
tfvis.py
under Python 3.12, I gotin
PwmPmw code.Callable
was moved tocollections.abc
in Python 3.10 (October 2021). The hack below lets the script run, but unlesspwmPmw is updated we should consider retiring this example.Warnings in examples
Some examples raise control deprecation warnings, e.g.,
genswitch.py
usesphase_plot
instead ofphase_plane_plot
. I started looking into this, but it got a bit involved.Lint on notebooks
ruff
can also run on Jupyter notebooks. Some fixes are obvious:but I'm less sure about changing these
*
imports; they are convenient, and make things more familiar for Matlab users: