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 — Enable scalar division of state-space objects by roryyorke · Pull Request #811 · python-control/python-control Conversation
Contributor
I think this is a reasonable if minor improvement; it lets one write I added a simple test for I also modified the type-conversion tests as required.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAttempt division by any non-LTI and non-NameIOSystem by translating G / k to G * (1/k). Division of StateSpace by TransferFunction, etc., unchanged. These aren't used in Python 3.
|
There was an error while loading. Please reload this page.
|
Coverage increased (+0.05%) to 94.855% when pulling cc3fb2f on roryyorke:rory/ss-div-scalar into 9d65bf8 on python-control:main. |
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.
LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return newsys | ||
|
|
||
| def __truediv__(sys2, sys1): | ||
| """Multiply two input/output systems (series interconnection)""" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
should this docstring say "divide"?
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.
looks good to me - with one possible update in a docstrong
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Whoops, yes. Should be similar to StateSpace truediv docstring. Earliest I
can look at this is Friday.
…On Mon, 12 Dec 2022, 18:55 Sawyer Fuller, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In control/iosys.py
<#811 (comment)>
:
> @@ -346,6 +346,17 @@ def __neg__(sys):
# Return the newly created system
return newsys
+ def __truediv__(sys2, sys1):
+ """Multiply two input/output systems (series interconnection)"""
should this docstring say "divide"?
—
Reply to this email directly, view it on GitHub
<#811 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3C7TWMZLIXFWKP4YPHCDWM5KGRANCNFSM6AAAAAAS2FXV4E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.