Skip to content

Commit 7e403ea

Browse files
committed
allow FRD for feedback()
1 parent 5ce5f57 commit 7e403ea

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-03-22 Richard Murray <murray@sidamo.local>
2+
3+
* src/bdalg.py (feedback): allow FRD for feedback()
4+
15
2014-03-22 Richard Murray <murray@sidamo.local>
26

37
* tests/discrete_test.py (TestDiscrete.test_sample_system): added

src/bdalg.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ def feedback(sys1, sys2=1, sign=-1):
220220

221221
# Check for correct input types.
222222
if not isinstance(sys1, (int, float, complex, tf.TransferFunction,
223-
ss.StateSpace)):
224-
raise TypeError("sys1 must be a TransferFunction or StateSpace " +
225-
"object, or a scalar.")
223+
ss.StateSpace, frd.FRD)):
224+
raise TypeError("sys1 must be a TransferFunction, StateSpace " +
225+
"or FRD object, or a scalar.")
226226
if not isinstance(sys2, (int, float, complex, tf.TransferFunction,
227-
ss.StateSpace)):
228-
raise TypeError("sys2 must be a TransferFunction or StateSpace " +
229-
"object, or a scalar.")
227+
ss.StateSpace, frd.FRD)):
228+
raise TypeError("sys2 must be a TransferFunction, StateSpace " +
229+
"or FRD object, or a scalar.")
230230

231231
# If sys1 is a scalar, convert it to the appropriate LTI type so that we can
232232
# its feedback member function.

0 commit comments

Comments
 (0)