Skip to content

Commit ff63613

Browse files
committed
Replace control with ct to fix doctests
1 parent 0de8c28 commit ff63613

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

control/bdalg.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def combine_tf(tf_array):
542542
--------
543543
Combine two transfer functions
544544
545-
>>> s = control.TransferFunction.s
546-
>>> control.combine_tf([
545+
>>> s = ct.TransferFunction.s
546+
>>> ct.combine_tf([
547547
... [1 / (s + 1)],
548548
... [s / (s + 2)],
549549
... ])
@@ -552,9 +552,9 @@ def combine_tf(tf_array):
552552
553553
Combine NumPy arrays with transfer functions
554554
555-
>>> control.combine_tf([
555+
>>> ct.combine_tf([
556556
... [np.eye(2), np.zeros((2, 1))],
557-
... [np.zeros((1, 2)), control.TransferFunction([1], [1, 0])],
557+
... [np.zeros((1, 2)), ct.TransferFunction([1], [1, 0])],
558558
... ])
559559
TransferFunction([[array([1.]), array([0.]), array([0.])],
560560
[array([0.]), array([1.]), array([0.])],
@@ -636,7 +636,7 @@ def split_tf(transfer_function):
636636
--------
637637
Split a MIMO transfer function
638638
639-
>>> G = control.TransferFunction(
639+
>>> G = ct.TransferFunction(
640640
... [
641641
... [[87.8], [-86.4]],
642642
... [[108.2], [-109.6]],
@@ -646,7 +646,7 @@ def split_tf(transfer_function):
646646
... [[1, 1], [1, 1]],
647647
... ],
648648
... )
649-
>>> control.split_tf(G)
649+
>>> ct.split_tf(G)
650650
array([[TransferFunction(array([87.8]), array([1, 1])),
651651
TransferFunction(array([-86.4]), array([1, 1]))],
652652
[TransferFunction(array([108.2]), array([1, 1])),

0 commit comments

Comments
 (0)