8000 docstring updates · python-control/python-control@598058c · GitHub
[go: up one dir, main page]

Skip to content

Commit 598058c

Browse files
committed
docstring updates
1 parent 223d0c8 commit 598058c

File tree

3 files changed

+7
-6
lines changed
Collapse file tree

3 files changed

+7
-6
lines changed

control/lti.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,9 @@ def dcgain(sys):
644644
Returns
645645
-------
646646
gain : ndarray
647-
The zero-frequency gain, or np.inf if the system has a pole at the
648-
origin, np.nan if there is a pole/zero cancellation at the origin.
647+
The zero-frequency gain, or (inf + nanj) if the system has a pole at
648+
the origin, (nan + nanj) if there is a pole/zero cancellation at the
649+
origin.
649650
650651
"""
651652
return sys.dcgain()

control/statesp.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,9 +1219,10 @@ def dcgain(self, warn_infinite=False):
12191219
Returns
12201220
-------
12211221
gain : ndarray
1222-
An array of shape (outputs,inputs); the array will either
1223-
be the zero-frequency (or DC) gain, or, if the frequency
1224-
response is singular, the array will be filled with np.inf.
1222+
An array of shape (outputs,inputs); the array will either be the
1223+
zero-frequency (or DC) gain, or, if the frequency response is
1224+
singular, the array will be filled with (inf + nanj).
1225+
12251226
"""
12261227
return self(0, warn_infinite=warn_infinite) if self.isctime() \
12271228
else self(1, warn_infinite=warn_infinite)

control/tests/statesp_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
rss, ss, tf2ss, _statesp_defaults)
2222
from control.tests.conftest import ismatarrayout, slycotonly
2323
from control.xferfcn import TransferFunction, ss2tf
24-
from control.exception import ControlSlycot
2524

2625
from .conftest import editsdefaults
2726

0 commit comments

Comments
 (0)
0