Skip to content

Commit 5d7b328

Browse files
committed
fix doctest errors in {combine,split}_tf (by suppressing output)
1 parent 02f7a13 commit 5d7b328

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

control/bdalg.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def combine_tf(tf_array, **kwargs):
550550
551551
Examples
552552
--------
553-
Combine two transfer functions
553+
Combine two transfer functions:
554554
555555
>>> s = ct.tf('s')
556556
>>> ct.combine_tf(
@@ -565,7 +565,7 @@ def combine_tf(tf_array, **kwargs):
565565
[array([1, 2])]],
566566
name='G', outputs=2, inputs=1)
567567
568-
Combine NumPy arrays with transfer functions
568+
Combine NumPy arrays with transfer functions:
569569
570570
>>> ct.combine_tf(
571571
... [[np.eye(2), np.zeros((2, 1))],
@@ -639,6 +639,7 @@ def combine_tf(tf_array, **kwargs):
639639
return tf.TransferFunction(num, den, dt=dt, **kwargs)
640640

641641

642+
642643
def split_tf(transfer_function):
643644
"""Split MIMO transfer function into SISO transfer functions.
644645
@@ -657,7 +658,7 @@ def split_tf(transfer_function):
657658
658659
Examples
659660
--------
660-
Split a MIMO transfer function
661+
Split a MIMO transfer function:
661662
662663
>>> G = ct.tf(
663664
... [ [[87.8], [-86.4]],

0 commit comments

Comments
 (0)