Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

bnavigator
Copy link
Contributor

squeeze=False does not work forforced_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 commentedJul 31, 2020
edited
Loading

Coverage Status

Coverage remained the same at 84.212% when pullingbc65000 on bnavigator:fix-squeeze-override intod3142ff on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 84.222% when pullingbc65000 on bnavigator:fix-squeeze-override intod3142ff on python-control:master.

@bnavigator
Copy link
ContributorAuthor

@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
ContributorAuthor

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. Nosqueeze=False usages by many users then.

@bnavigatorbnavigator added this to the0.8.4 milestoneAug 17, 2020
@bnavigator
Copy link
ContributorAuthor

Any objections to merge now?

@murrayrm
Copy link
Member

OK by me.

@bnavigator
Copy link
ContributorAuthor

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

@bnavigatorbnavigator merged commit2d61988 intopython-control:masterAug 17, 2020
@bnavigatorbnavigator deleted the fix-squeeze-override branchJanuary 5, 2021 20:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.8.4
Development

Successfully merging this pull request may close these issues.

3 participants
@bnavigator@coveralls@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp