Skip to content

Commit c05e179

Browse files
committed
python 2 (!) fix: only kwarg after *args
1 parent d96bc70 commit c05e179

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/margins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,15 @@ def stability_margins(sysdata, returnall=False, epsw=0.0):
307307
else: # Discrete Time
308308
zargs = _poly_z_invz(sys)
309309
# gain margin
310-
z, w_180 = _poly_z_real_crossing(*zargs, epsw)
310+
z, w_180 = _poly_z_real_crossing(*zargs, epsw=epsw)
311311
w180_resp = evalfr(sys, z)
312312

313313
# phase margin
314-
z, wc = _poly_z_mag1_crossing(*zargs, epsw)
314+
z, wc = _poly_z_mag1_crossing(*zargs, epsw=epsw)
315315
wc_resp = evalfr(sys, z)
316316

317317
# stability margin
318-
z, wstab = _poly_z_wstab(*zargs, epsw)
318+
z, wstab = _poly_z_wstab(*zargs, epsw=epsw)
319319
ws_resp = evalfr(sys, z)
320320

321321
# only keep frequencies where the negative real axis is crossed

0 commit comments

Comments
 (0)