GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — add unsupervised calculation on gains for root locus plot. by gonmolina · Pull Request #138 · python-control/python-control Conversation
Contributor
Add gains up to a tolerance is achived.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsfix bug plotting zeros when only zeros in zero exist fix bug plotting zeros when only zeros in zero exist
|
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.4%) to 76.955% when pulling ebd3904 on gonmolina:unsup_rlocus_gain_selection into 6ada795 on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…o unsup_rlocus_gain_selection
…and wn constant lines. grids ok in most of the examples.
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.5%) to 76.822% when pulling 5438746 on gonmolina:unsup_rlocus_gain_selection into 6ada795 on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gonmolina can you add a citation in the docstring to the book that you used? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I am sorry for my delay; I lost track of my GitHub notifications feed. I anticipate finishing reviewing this within 2 days. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…r of poles and zeros
better selection of sgrid zetas and omega
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.6%) to 76.68% when pulling 6c813ce on gonmolina:unsup_rlocus_gain_selection into 6ada795 on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fix a minor bug.
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.9%) to 76.428% when pulling 6e4d14f on gonmolina:unsup_rlocus_gain_selection into 6ada795 on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I added a book as a reference. @slivingston I wait for your review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gonmolina thanks working on it now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Besides using and instead of &, I made several minor requests about style. Otherwise, this is ready.
You do not need to do it now for this PR, but for the future, commits like 6e4d14f that accomplish more than one distinct task should be split into multiple commits. One reason to do so is simple reverting of changes later if we need to.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| open_loop_poles = den.roots | ||
| open_loop_zeros = num.roots | ||
|
|
||
| if (open_loop_zeros.size != 0) & (open_loop_zeros.size < open_loop_poles.size): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
and should be used instead of &. The same request applies to lines 198 and 369.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
|
|
||
| def _k_max(num, den, real_break_points, k_break_points): | ||
| """" Calculation the maximum gain for the root locus shown in tne figure""" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
misprint: "tne" should be "the". Also, the first word should some verb. E.g., "Calculate"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| curpoly = denp + k * nump | ||
| curroots = curpoly.r | ||
| if len(curroots) < denp.order: | ||
| curroots = np.insert(curroots, len(curroots), np.inf) # if i have less poles than open loop is because i |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The comment here overflows into the next line. For ease of reading, it should be moved to the line before. This style for block comments is given in PEP 8. E.g., after I edit the comment text a little,
if len(curroots) < denp.order: # If I have fewer poles than open loop, it is because I # have one at infinity. curroots = np.insert(curroots, len(curroots), np.inf)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gonmolina thanks. The changes are good. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Actually considering the failures on CI testing, there may have been a regression. I am trying to reproduce locally. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is there any way to do the test locally in my machine without doing a push? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There are several new changes outside the scope of the previous review, so I will review these when you tell me that they are ready. Several of the commit messages mention fixing of bugs. If these existed before this PR, can you add regression tests for them, i.e., tests that demonstrate the bugs? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I made 2 changes:
A regression test for the first problem is: import control as ctrl |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Coverage decreased (-0.6%) to 76.741% when pulling 4eedde4 on gonmolina:unsup_rlocus_gain_selection into 6ada795 on python-control:master. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gonmolina it looks like you are permitting me to push changes to the branch associated with this pull request. Can I do so, to add the regression test that you suggest above? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
yes, you can do it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@slivingston I'm trying to clean up some of the PRs over the holiday break. Let me know if you are still working on this one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've run Travis CI on a local branch and all tests are OK: results. @gonmolina, @slivingston Are we ready to merge or is more testing required? Seems like this has to be better than what was there before (placeholder). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.