Skip to content

Commit 0e247b1

Browse files
committed
remove extraneous text + PEP8 cleanup
1 parent e42c360 commit 0e247b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

control/margins.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def fun(wdt):
237237
# for crossover frequencies and enhanced to handle discrete
238238
# systems
239239

240-
>>>>>>> Stashed changes
240+
241241
def stability_margins(sysdata, returnall=False, epsw=0.0):
242242
"""Calculate stability margins and associated crossover frequencies.
243243
@@ -411,7 +411,8 @@ def _dstab(w):
411411
(not SM.shape[0] and float('inf')) or np.amin(SM),
412412
(not gmidx != -1 and float('nan')) or w_180[gmidx][0],
413413
(not wc.shape[0] and float('nan')) or wc[pmidx][0],
414-
(not wstab.shape[0] and float('nan')) or wstab[SM==np.amin(SM)][0])
414+
(not wstab.shape[0] and float('nan')) or
415+
wstab[SM == np.amin(SM)][0])
415416

416417

417418
# Contributed by Steffen Waldherr <waldherr@ist.uni-stuttgart.de>
@@ -504,6 +505,6 @@ def margin(*args):
504505
margin = stability_margins(args)
505506
else:
506507
raise ValueError("Margin needs 1 or 3 arguments; received %i."
507-
% len(args))
508+
% len(args))
508509

509510
return margin[0], margin[1], margin[3], margin[4]

0 commit comments

Comments
 (0)