-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
DOC: Clarify Exponent Order in ltisys.py #5650
Conversation
@@ -1086,6 +1096,10 @@ def lsim2(system, U=None, T=None, X0=None, **kwargs): | |||
given to `lsim2` are passed on to `odeint`. See the documentation | |||
for `scipy.integrate.odeint` for the full list of arguments. | |||
|
|||
If (num, den) is passed in for `system`, coefficients for both the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either system
or *system
would be fine, but be consistent between the uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually was trying to match it to the argument signatures and current documentation, some of which use *system
and others which use system
. Should I just use system
for all of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, it's different for this function. That's fine, then.
@rkern : Updated with a happy Travis |
@@ master #5650 diff @@
======================================
Files 234 234
Stmts 43096 43096
Branches 8154 8154
Methods 0 0
======================================
Hit 33410 33410
Partial 2605 2605
Missed 7081 7081
|
Is there anything else that needs to be done here? I've just been rebasing this PR onto |
@@ -375,6 +376,10 @@ class lti(object): | |||
of one of its subclasses: `StateSpace`, `TransferFunction` or | |||
`ZerosPolesGain`. | |||
|
|||
If (numerator, denominator) is passed in for `*system`, coefficients for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs double backticks around both *system
to render correctly in html/pdf docs (single backticks is for links to other objects/functions).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same applies to changes in the rest of this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
These look like good clarifications to me. Good to merge modulo the reST markup that I commented on. |
@rgommers : Should the list |
Less critical, but yes I have a slight preference for doing so. It's basically a trade-off between making the html output look nicer but the plain docstring a bit less readable in a terminal. |
@rgommers : Okay, I'll add the back-ticks to those as well. |
@rgommers : Updated with a happy Travis. |
DOC: clarify exponent order in signal/ltisys
Thanks @gfyoung, merged. |
Title is self-explanatory.