Skip to content

Commit b881b77

Browse files
committed
DOC: improved docstrings for fucntions with variable arguments
1 parent bde823b commit b881b77

6 files changed

Lines changed: 15 additions & 6 deletions

File tree

control/bdalg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ def feedback(sys1, sys2=1, sign=-1):
246246
return sys1.feedback(sys2, sign)
247247

248248
def append(*sys):
249-
'''
249+
'''append(sys1, sys2, ... sysn)
250+
250251
Group models by appending their inputs and outputs
251252
252253
Forms an augmented system model, and appends the inputs and

control/margins.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ def phase_crossover_frequencies(sys):
336336

337337

338338
def margin(*args):
339-
"""Calculate gain and phase margins and associated crossover frequencies
339+
"""margin(sys)
340+
341+
Calculate gain and phase margins and associated crossover frequencies
340342
341343
Parameters
342344
----------

control/matlab/wrappers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
__all__ = ['bode', 'ngrid', 'dcgain']
1111

1212
def bode(*args, **keywords):
13-
"""Bode plot of the frequency response
13+
"""bode(syslist[, omega, dB, Hz, deg, ...])
14+
15+
Bode plot of the frequency response
1416
1517
Plots a bode gain and phase diagram
1618

control/statefbk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def acker(A, B, poles):
144144
return K
145145

146146
def lqr(*args, **keywords):
147-
"""Linear quadratic regulator design
147+
"""lqr(A, B, Q, R[, N])
148+
149+
Linear quadratic regulator design
148150
149151
The lqr() function computes the optimal state feedback controller
150152
that minimizes the quadratic cost

control/statesp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,8 @@ def ss(*args):
10521052
raise ValueError("Needs 1 or 4 arguments; received %i." % len(args))
10531053

10541054
def tf2ss(*args):
1055-
"""
1055+
"""tf2ss(sys)
1056+
10561057
Transform a transfer function to a state space system.
10571058
10581059
The function accepts either 1 or 2 parameters:

control/xferfcn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,8 @@ def tf(*args):
12731273
raise ValueError("Needs 1 or 2 arguments; received %i." % len(args))
12741274

12751275
def ss2tf(*args):
1276-
"""
1276+
"""ss2tf(sys)
1277+
12771278
Transform a state space system to a transfer function.
12781279
12791280
The function accepts either 1 or 4 parameters:

0 commit comments

Comments
 (0)