Skip to content

Commit 55ba0e2

Browse files
committed
Make default value for "klist" argument of rlocus() explicit.
1 parent 8936b52 commit 55ba0e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/matlab.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def ngrid():
10051005
ngrid.__doc__ = re.sub('nichols_grid', 'ngrid', nichols_grid.__doc__)
10061006

10071007
# Root locus plot
1008-
def rlocus(sys, klist = None, **keywords):
1008+
def rlocus(sys, klist = logspace(-3, 3), **keywords):
10091009
"""Root locus plot
10101010
10111011
Parameters
@@ -1023,9 +1023,7 @@ def rlocus(sys, klist = None, **keywords):
10231023
list of gains used to compute roots
10241024
"""
10251025
from rlocus import root_locus
1026-
if (klist == None):
1027-
#! TODO: update with a smart cacluation of the gains
1028-
klist = logspace(-3, 3)
1026+
#! TODO: update with a smart calculation of the gains when using default value for klist.
10291027

10301028
rlist = root_locus(sys, klist, **keywords)
10311029
return rlist, klist

0 commit comments

Comments
 (0)