- Notifications
You must be signed in to change notification settings - Fork441
fix _isstatic() to use nstates==0#790
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix _isstatic() to use nstates==0#790
Uh oh!
There was an error while loading.Please reload this page.
Conversation
coveralls commentedNov 13, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
LGTM
@@ -51,7 +54,7 @@ class TSys: | |||
def test_linear_iosys(self, tsys): | |||
# Create an input/output system from the linear system | |||
linsys = tsys.siso_linsys | |||
iosys = ios.LinearIOSystem(linsys) | |||
iosys = ios.LinearIOSystem(linsys).copy() |
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.
is it obvious why this.copy
is necessary?
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.
Definitely not obvious, but this gets rid of a warning later on since theinterconnect
function generates a warning if a system appears more than once in an interconnected system, since then the name of system is not unique. (It's also possible to turn the warning off withwarn_dupicate=False
).
This PR fixes the issues identified in PR#785 regarding the way that
StateSpace._isstatic
was defining a static system. New version requiresnstates == 0
.