Skip to content

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

Merged
murrayrm merged 3 commits into
python-control:mainfrom
roryyorke:gh1097-ctrb-obsv-shapes
Jan 20, 2025
Merged

ctrb treats ndim=1 B correctly; ctrb & obsv check input shapes#1099
murrayrm merged 3 commits into
python-control:mainfrom
roryyorke:gh1097-ctrb-obsv-shapes

Conversation

@roryyorke

Copy link
Copy Markdown
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

coveralls commented Jan 19, 2025

Copy link
Copy Markdown

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
Copy Markdown
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

@slivingston slivingston left a comment

Copy link
Copy Markdown
Member

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.

Comment thread control/tests/statefbk_test.py Outdated
@roryyorke

roryyorke commented Jan 20, 2025 via email

Copy link
Copy Markdown
Contributor Author

Co-authored-by: Scott C. Livingston <scott@rerobots.net>
@murrayrm murrayrm merged commit bddc796 into python-control:main Jan 20, 2025
@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