Skip to content

Commit 3153dfa

Browse files
committed
fix docstring example errors (in newly included functions)
1 parent 6070ca7 commit 3153dfa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

control/lti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ def bandwidth(sys, dbdrop=-3):
612612
ValueError
613613
if 'dbdrop' is not a negative scalar
614614
615-
Example
616-
-------
615+
Examples
616+
--------
617617
>>> G = ct.tf([1], [1, 1])
618618
>>> ct.bandwidth(G)
619619
np.float64(0.9976283451102316)

control/xferfcn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ def _isstatic(self):
12881288
#: The ``s`` constant can be used to create continuous time transfer
12891289
#: functions using algebraic expressions.
12901290
#:
1291-
#: Example
1292-
#: -------
1291+
#: Examples
1292+
#: --------
12931293
#: >>> s = TransferFunction.s # doctest: +SKIP
12941294
#: >>> G = (s + 1)/(s**2 + 2*s + 1) # doctest: +SKIP
12951295
#:
@@ -1301,8 +1301,8 @@ def _isstatic(self):
13011301
#: The ``z`` constant can be used to create discrete time transfer
13021302
#: functions using algebraic expressions.
13031303
#:
1304-
#: Example
1305-
#: -------
1304+
#: Examples
1305+
#: --------
13061306
#: >>> z = TransferFunction.z # doctest: +SKIP
13071307
#: >>> G = 2 * z / (4 * z**3 + 3*z - 1) # doctest: +SKIP
13081308
#:

0 commit comments

Comments
 (0)