10000 address @sawyerbfuller review comments · python-control/python-control@b338e32 · GitHub
[go: up one dir, main page]

Skip to content

Commit b338e32

Browse files
committed
address @sawyerbfuller review comments
1 parent 90da4fb commit b338e32

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

control/frdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ def __call__(self, s, squeeze=None):
441441
frequency values.
442442
"""
443443
# Make sure that we are operating on a simple list
444-
if len(np.array(s, ndmin=1).shape) > 1:
444+
if len(np.atleast_1d(s).shape) > 1:
445445
raise ValueError("input list must be 1D")
446446

447-
if any(abs(np.array(s, ndmin=1).real) > 0):
447+
if any(abs(np.atleast_1d(s).real) > 0):
448448
raise ValueError("__call__: FRD systems can only accept "
449449
"purely imaginary frequencies")
450450

control/statesp.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,10 +646,6 @@ def __call__(self, x, squeeze=None):
646646
Returns the complex frequency response `sys(x)` where `x` is `s` for
647647
continuous-time systems and `z` for discrete-time systems.
648648
649-
In general the system may be multiple input, multiple output
650-
(MIMO), where `m = self.inputs` number of inputs and `p =
651-
self.outputs` number of outputs.
652-
653649
To evaluate at a frequency omega in radians per second, enter
654650
``x = omega * 1j``, for continuous-time systems, or
655651
``x = exp(1j * omega * dt)`` for discrete-time systems. Or use

0 commit comments

Comments
 (0)
0