Skip to content

Commit f2285e4

Browse files
committed
add standalone docstrings_test mode + fix docstrings
1 parent 210ab45 commit f2285e4

9 files changed

Lines changed: 206 additions & 148 deletions

File tree

control/flatsys/flatsys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def flatsys(*args, updfcn=None, outfcn=None, **kwargs):
235235
236236
Returns
237237
-------
238-
sys: :class:`FlatSystem`
238+
sys : :class:`FlatSystem`
239239
Flat system.
240240
241241
Other Parameters

control/lti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def zeros(sys):
277277
278278
Returns
279279
-------
280-
zeros: ndarray
280+
zeros : ndarray
281281
Array that contains the system's zeros.
282282
283283
See Also

control/nichols.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ def nichols_grid(cl_mags=None, cl_phases=None, line_style='dotted', ax=None,
208208
209209
Returns
210210
-------
211-
cl_mag_lines: list of `matplotlib.line.Line2D`
211+
cl_mag_lines : list of `matplotlib.line.Line2D`
212212
The constant closed-loop gain contours
213-
cl_phase_lines: list of `matplotlib.line.Line2D`
213+
cl_phase_lines : list of `matplotlib.line.Line2D`
214214
The constant closed-loop phase contours
215-
cl_mag_labels: list of `matplotlib.text.Text`
215+
cl_mag_labels : list of `matplotlib.text.Text`
216216
mcontour labels; each entry corresponds to the respective entry
217217
in ``cl_mag_lines``
218-
cl_phase_labels: list of `matplotlib.text.Text`
218+
cl_phase_labels : list of `matplotlib.text.Text`
219219
ncontour labels; each entry corresponds to the respective entry
220220
in ``cl_phase_lines``
221221
"""

control/nlsys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,11 +1191,11 @@ def check_unused_signals(
11911191
11921192
Returns
11931193
-------
1194-
dropped_inputs: list of tuples
1194+
dropped_inputs : list of tuples
11951195
A list of the dropped input signals, with each element of the
11961196
list in the form of (isys, isig).
11971197
1198-
dropped_outputs: list of tuples
1198+
dropped_outputs : list of tuples
11991199
A list of the dropped output signals, with each element of the
12001200
list in the form of (osys, osig).
12011201

control/optimal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def compute_trajectory(
785785
-------
786786
res : OptimalControlResult
787787
Bundle object with the results of the optimal control problem.
788-
res.success: bool
788+
res.success : bool
789789
Boolean flag indicating whether the optimization was successful.
790790
res.time : array
791791
Time values of the input.
@@ -830,7 +830,7 @@ def compute_mpc(self, x, squeeze=None):
830830
831831
Parameters
832832
----------
833-
x: array-like or number, optional
833+
x : array-like or number, optional
834834
Initial state for the system.
835835
squeeze : bool, optional
836836
If True and if the system has a single output, return the system
@@ -1706,7 +1706,7 @@ def compute_estimate(
17061706
Estimated disturbance inputs for the system trajectory.
17071707
res.states : array
17081708
Time evolution of the estimated state vector.
1709-
res.outputs: array
1709+
res.outputs : array
17101710
Estimated measurement noise for the system trajectory.
17111711
17121712
"""

control/phaseplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def meshgrid(xvals, yvals):
747747
748748
Returns
749749
-------
750-
grid: 2D array
750+
grid : 2D array
751751
Array of points with shape (n * m, 2) defining the mesh
752752
753753
"""
@@ -777,7 +777,7 @@ def circlegrid(centers, radius, num):
777777
778778
Returns
779779
-------
780-
grid: 2D array
780+
grid : 2D array
781781
Array of points with shape (p * num, 2) defining the circles.
782782
783783
"""

control/pzmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def pole_zero_plot(
225225
226226
See :class:`ControlPlot` for more detailed information.
227227
228-
poles, zeros: list of arrays
228+
poles, zeros : list of arrays
229229
(legacy) If the `plot` keyword is given, the system poles and zeros
230230
are returned.
231231

control/robust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def mixsyn(g, w1=None, w2=None, w3=None):
396396
397397
then cl is the system from w->z with `u = -k*y`.
398398
399-
info: tuple
399+
info : tuple
400400
gamma: scalar
401401
H-infinity norm of cl.
402402
rcond: array

0 commit comments

Comments
 (0)