Skip to content

Fix #45 - make gain vector optional in root_locus#54

Merged
murrayrm merged 2 commits into
python-control:masterfrom
cwrowley:gh-45
Apr 5, 2015
Merged

Fix #45 - make gain vector optional in root_locus#54
murrayrm merged 2 commits into
python-control:masterfrom
cwrowley:gh-45

Conversation

@cwrowley

@cwrowley cwrowley commented Apr 5, 2015

Copy link
Copy Markdown
Contributor

As a consequence of this change, root_locus now returns two items, the roots and the gains used (consistent with matlab.rlocus).

This PR also fixes some mistakes I found in the documentation.

cwrowley added 2 commits April 5, 2015 11:39
Note that one cannot use arbitrary section headings in numpydoc.  For
instance, the section headings "Usage", "Keywords", and
"Return Values" are not valid section headings, and would give warnings
when building documentation.

In addition, the routine matlab.tfdata was documented incorrectly (the
documentated behavior did not match the actual behavior when keyword
arguments were used).
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 72.95% when pulling 45e0450 on cwrowley:gh-45 into b7e7ae9 on python-control:master.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 72.95% when pulling 45e0450 on cwrowley:gh-45 into b7e7ae9 on python-control:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 72.95% when pulling 45e0450 on cwrowley:gh-45 into b7e7ae9 on python-control:master.

murrayrm added a commit that referenced this pull request Apr 5, 2015
Fix #45 - make gain vector optional in root_locus

Checked and this looks OK.  For posterity, what was the reason for getting rid of some of the **kw arguments:

    -def tfdata(sys, **kw):
    +def tfdata(sys):
@murrayrm murrayrm merged commit 9671fe3 into python-control:master Apr 5, 2015
Comment thread control/matlab.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The keyword arguments inputs and outputs to _convertToTransferFunction apply only if sys is a SISO system, and the result is to return a MIMO transfer function with the specified number of inputs and outputs. So this is different from what is in the documentation string above, and since this routine just extracts the numerator and denominator of a transfer function, there would never be a need to convert a SISO system to MIMO.

@cwrowley cwrowley deleted the gh-45 branch April 5, 2015 18:06
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