8000 Margin fix by roryyorke · Pull Request #66 · python-control/python-control · GitHub
[go: up one dir, main page]

Skip to content

Margin fix #66

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 2 commits into from
Jul 11, 2015
Merged

Margin fix #66

merged 2 commits into from
Jul 11, 2015

Conversation

roryyorke
Copy link
Contributor

This is a straightforward fix to margin.

The related tests have some odd properties, e.g., TestMargin in margin_test.py has four test systems, but only checks the results for one of them; and similarly TestMatlab.testMargin() runs margin() on five systems, but only checks one result.

Oh, and apologies for the two commits; I didn't run the full test suite before the first commit.

control.margins.margin() was returning the gain and phase margin
frequencies in the wrong order.

Added TestMargin.test_margin, duplicating test case from
TestMargin.test_stability_margins, in margin_test.py, and unskipped
TestMatlab.testCombi01 in matlab_test.py.
Revert gain and phase frequency swap in TestMatlab.testCombi01.

Correct TestMatlab.testMargin.
repagh added a commit that referenced this pull request Jul 11, 2015
Margin fix

You are right on this one.
@repagh repagh merged commit b03e294 into python-control:master Jul 11, 2015
@roryyorke roryyorke deleted the margin-fix branch July 12, 2015 10: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
0