Skip to content

do not override squeeze parameter in forced_response #442

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 1 commit into from
Aug 17, 2020

Conversation

bnavigator
Copy link
Contributor

squeeze=False does not work for forced_response() because the parameter is unnecessarily overridden by a shortcut alias to np.squeeze.

The current code timeresp_test.py advertises to test this, but actually does not. (#438 does now, that's how I stumbled over it.)

@coveralls
Copy link

coveralls commented Jul 31, 2020

Coverage Status

Coverage remained the same at 84.212% when pulling bc65000 on bnavigator:fix-squeeze-override into d3142ff on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 84.222% when pulling bc65000 on bnavigator:fix-squeeze-override into d3142ff on python-control:master.

@bnavigator
Copy link
Contributor Author

@murrayrm, this is a fix but it changes user facing behavior. I am not sure whether it should go to 0.8.4 or 0.9

@murrayrm
Copy link
Member

I think we could argue that this sort of fix is OK in 0.8.4, given that it probably wasn't really used much (since nobody complained that it was broken).

@bnavigator
Copy link
Contributor Author

Yes, looking at git blame, the squeeze parameter was introduced into master by #295 last year and only existed in 0.8.3 since January. No squeeze=False usages by many users then.

@bnavigator bnavigator added this to the 0.8.4 milestone Aug 17, 2020
@bnavigator
Copy link
Contributor Author

Any objections to merge now?

@murrayrm
Copy link
Member

OK by me.

@bnavigator
Copy link
Contributor Author

Excercising my newly received privileges then. Thanks for adding me to the team 😃

@bnavigator bnavigator merged commit 2d61988 into python-control:master Aug 17, 2020
@bnavigator bnavigator deleted the fix-squeeze-override branch January 5, 2021 20:13
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.

3 participants