Skip to content

Commit 11d9350

Browse files
committed
a few more fixes to sys.sample
1 parent 3a554b5 commit 11d9350

4 files changed

Lines changed: 14 additions & 19 deletions

File tree

control/dtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None,
8686
signals, and states to the sampled system.
8787
inputs : int, list of str or None, optional
8888
Description of the system inputs. If not specified, the origional
89-
system inputs are used. See :class:`NamedIOSystem` for more
89+
system inputs are used. See :class:`InputOutputSystem` for more
9090
information.
9191
outputs : int, list of str or None, optional
9292
Description of the system outputs. Same format as `inputs`.

control/iosys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ def linearize(sys, xeq, ueq=None, t=0, params=None, **kw):
22052205
states to the linearized system.
22062206
inputs : int, list of str or None, optional
22072207
Description of the system inputs. If not specified, the origional
2208-
system inputs are used. See :class:`NamedIOSystem` for more
2208+
system inputs are used. See :class:`InputOutputSystem` for more
22092209
information.
22102210
outputs : int, list of str or None, optional
22112211
Description of the system outputs. Same format as `inputs`.

control/statesp.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,14 +1338,6 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None,
13381338
copy_names : bool, Optional
13391339
If True, copy the names of the input signals, output
13401340
signals, and states to the sampled system.
1341-
1342-
Returns
1343-
-------
1344-
sysd : StateSpace
1345-
Discrete-time system, with sampling rate Ts
1346-
1347-
Additional Parameters
1348-
---------------------
13491341
inputs : int, list of str or None, optional
13501342
Description of the system inputs. If not specified, the origional
13511343
system inputs are used. See :class:`InputOutputSystem` for more
@@ -1355,6 +1347,11 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None,
13551347
states : int, list of str, or None, optional
13561348
Description of the system states. Same format as `inputs`.
13571349
1350+
Returns
1351+
-------
1352+
sysd : StateSpace
1353+
Discrete-time system, with sampling rate Ts
1354+
13581355
Notes
13591356
-----
13601357
Uses :func:`scipy.signal.cont2discrete`
@@ -1520,6 +1517,7 @@ def output(self, t, x, u=None, params=None):
15201517

15211518

15221519
# TODO: add discrete time check
1520+
# TODO: copy signal names
15231521
def _convert_to_statespace(sys):
15241522
"""Convert a system to state space form (if needed).
15251523

control/xferfcn.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,21 +1130,18 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None,
11301130
copy_names : bool, Optional
11311131
If True, copy the names of the input signals, output
11321132
signals, and states to the sampled system.
1133-
1134-
Returns
1135-
-------
1136-
sysd : TransferFunction system
1137-
Discrete-time system, with sample period Ts
1138-
1139-
Additional Parameters
1140-
---------------------
11411133
inputs : int, list of str or None, optional
11421134
Description of the system inputs. If not specified, the origional
1143-
system inputs are used. See :class:`NamedIOSystem` for more
1135+
system inputs are used. See :class:`InputOutputSystem` for more
11441136
information.
11451137
outputs : int, list of str or None, optional
11461138
Description of the system outputs. Same format as `inputs`.
11471139
1140+
Returns
1141+
-------
1142+
sysd : TransferFunction system
1143+
Discrete-time system, with sample period Ts
1144+
11481145
Notes
11491146
-----
11501147
1. Available only for SISO systems

0 commit comments

Comments
 (0)