10000 DOC: fix small errors in docstring examples (#57) · uLipe/python-control@7ff4946 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ff4946

Browse files
committed
DOC: fix small errors in docstring examples (python-control#57)
1 parent 1039edd commit 7ff4946

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

control/frdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ def _convertToFRD(sys, omega, inputs=1, outputs=1):
452452
scalar, then the number of inputs and outputs can be specified
453453
manually, as in:
454454
455-
>>> sys = _convertToFRD(3.) # Assumes inputs = outputs = 1
456-
>>> sys = _convertToFRD(1., inputs=3, outputs=2)
455+
>>> frd = _convertToFRD(3., omega) # Assumes inputs = outputs = 1
456+
>>> frd = _convertToFRD(1., omegs, inputs=3, outputs=2)
457457
458458
In the latter example, sys's matrix transfer function is [[1., 1., 1.]
459459
[1., 1., 1.]].

control/xferfcn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def _convertToTransferFunction(sys, **kw):
10171017
If sys is an array-like type, then it is converted to a constant-gain
10181018
transfer function.
10191019
1020-
>>> sys = _convertToTransferFunction([[1. 0.], [2. 3.]])
1020+
>>> sys = _convertToTransferFunction([[1., 0.], [2., 3.]])
10211021
10221022
In this example, the numerator matrix will be
10231023
[[[1.0], [0.0]], [[2.0], [3.0]]]

0 commit comments

Comments
 (0)
0