Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e84d00

Browse files
committed
code style and docstring tweaks
1 parent9e326dd commit8e84d00

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

‎control/freqplot.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,14 +1166,11 @@ def nyquist_response(
11661166
sysdata : LTI or list of LTI
11671167
List of linear input/output systems (single system is OK). Nyquist
11681168
curves for each system are plotted on the same graph.
1169-
11701169
omega : array_like, optional
11711170
Set of frequencies to be evaluated, in rad/sec.
1172-
11731171
omega_limits : array_like of two values, optional
11741172
Limits to the range of frequencies. Ignored if omega is provided, and
11751173
auto-generated if omitted.
1176-
11771174
omega_num : int, optional
11781175
Number of frequency samples to plot. Defaults to
11791176
config.defaults['freqplot.number_of_samples'].
@@ -1182,8 +1179,8 @@ def nyquist_response(
11821179
-------
11831180
responses : list of :class:`~control.NyquistResponseData`
11841181
For each system, a Nyquist response data object is returned. If
1185-
sysdata is a single system, a single elemeent is returned (not a list).
1186-
For each response, the following information is available:
1182+
`sysdata` is a single system, a single elemeent is returned (not a
1183+
list).For each response, the following information is available:
11871184
response.count : int
11881185
Number of encirclements of the point -1 by the Nyquist curve. If
11891186
multiple systems are given, an array of counts is returned.
@@ -1742,7 +1739,8 @@ def _parse_linestyle(style_name, allow_false=False):
17421739
warn_encirclements=kwargs.pop('warn_encirclements',True),
17431740
warn_nyquist=kwargs.pop('warn_nyquist',True),
17441741
check_kwargs=False,**kwargs)
1745-
else:nyquist_responses=data
1742+
else:
1743+
nyquist_responses=data
17461744

17471745
# Legacy return value processing
17481746
ifplotisnotNoneorreturn_contourisnotNone:
@@ -2130,8 +2128,8 @@ def singular_values_response(
21302128
21312129
Parameters
21322130
----------
2133-
sys :(list of) LTI systems
2134-
List of linear systems (single system is OK).
2131+
sysdata :LTI orlist of LTI
2132+
List of linearinput/outputsystems (single system is OK).
21352133
omega : array_like
21362134
List of frequencies in rad/sec to be used for frequency response.
21372135
omega_limits : array_like of two values

‎control/lti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def frequency_response(
382382
383383
Parameters
384384
----------
385-
sysdata: LTI system or list of LTI systems
385+
sysdata: LTI system or list of LTI systems
386386
Linear system(s) for which frequency response is computed.
387387
omega : float or 1D array_like, optional
388388
A list of frequencies in radians/sec at which the system should be

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp