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

Skip to content

ctrb treats ndim=1 B correctly; ctrb & obsv check input shapes #1099

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 3 commits into from
Jan 20, 2025

Conversation

roryyorke
Copy link
Contributor

I also fixed easy errors pointed out by pyflakes in the two files I changed; these remain. The first one's obviously a bug, I'll open an issue. Not sure about the second two, probably just oversights?

Fixes gh-1097.

control/statefbk.py:278:5: local variable 'b' is assigned to but never used
control/tests/statefbk_test.py:857:13: local variable 'Ki' is assigned to but never used
control/tests/statefbk_test.py:1237:5: local variable 'points' is assigned to but never used

@coveralls
Copy link

coveralls commented Jan 19, 2025

Coverage Status

coverage: 94.69% (+0.003%) from 94.687%
when pulling b13ade4 on roryyorke:gh1097-ctrb-obsv-shapes
into 0ff0452 on python-control:main.

@murrayrm
Copy link
Member

LGTM. Will merge in a bit (just in case someone else wants to take a look).

@slivingston slivingston self-requested a review January 20, 2025 03:00
Copy link
Member

@slivingston slivingston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is correct. I found a misprint in the test comments. If I simply misinterpreted the comment, feel free to merge.

@roryyorke
Copy link
Contributor Author

roryyorke commented Jan 20, 2025 via email

Co-authored-by: Scott C. Livingston <[email protected]>
@murrayrm murrayrm merged commit bddc796 into python-control:main Jan 20, 2025
11 of 12 checks passed
@murrayrm murrayrm added this to the 0.10.2 milestone Feb 19, 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.

Unexpected and unwanted behaviour of control.ctrb
4 participants