Skip to content

Commit 40c9ccd

Browse files
committed
Add method issiso for LTI objects
1 parent f96745b commit 40c9ccd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

control/lti.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def isctime(self, strict=False):
9999
return True if not strict else False
100100
return self.dt == 0
101101

102+
def issiso(self):
103+
return self.inputs == 1 and self.outputs == 1
104+
102105
def damp(self):
103106
poles = self.pole()
104107
wn = absolute(poles)
@@ -113,7 +116,7 @@ def issiso(sys, strict=False):
113116
raise ValueError("Object is not an Lti system")
114117

115118
# Done with the tricky stuff...
116-
return sys.inputs == 1 and sys.outputs == 1
119+
return sys.issiso()
117120

118121
# Return the timebase (with conversion if unspecified)
119122
def timebase(sys, strict=True):

0 commit comments

Comments
 (0)