Skip to content

Commit 8486b7a

Browse files
Update control/frdata.py
Co-authored-by: Ben Greiner <code@bnavigator.de>
1 parent 6213a54 commit 8486b7a

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

control/frdata.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,24 @@ def __call__(self, s, squeeze=True):
391391
transfer function. For a MIMO transfer fuction, returns a
392392
matrix of values.
393393
394-
Raises an error if s is not purely imaginary.
395-
394+
Parameters
395+
----------
396+
s : scalar or array_like
397+
Complex frequencies
396398
squeeze: bool, optional (default=True)
397399
If True and sys is single input, single output (SISO), return a
398400
1D array or scalar depending on omega's length.
399401
402+
Returns
403+
-------
404+
ndarray or scalar
405+
Frequency response
406+
407+
Raises
408+
------
409+
ValueError
410+
If `s` is not purely imaginary.
411+
400412
"""
401413
if any(abs(np.array(s, ndmin=1).real) > 0):
402414
raise ValueError("__call__: FRD systems can only accept"

0 commit comments

Comments
 (0)