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

Commitc05e179

Browse files
committed
python 2 (!) fix: only kwarg after *args
1 parentd96bc70 commitc05e179

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)

[8]ページ先頭

©2009-2025 Movatter.jp