File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
241241def 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 ]
You can’t perform that action at this time.
0 commit comments