frappy_psi.magfield: bug in progress check
must check for self.current (not self.value) + fix in mercury: __ramping must be initialized
This commit is contained in:
@ -392,7 +392,7 @@ class Magfield(SimpleMagfield):
|
||||
if sm.init:
|
||||
self.init_progress(sm, self.current)
|
||||
if abs(self.current) > self.tolerance:
|
||||
if self.get_progress(sm, self.value) > self.leads_ramp_tmo:
|
||||
if self.get_progress(sm, self.current) > self.leads_ramp_tmo:
|
||||
raise HardwareError('no progress')
|
||||
return Retry
|
||||
if sm.mode == Mode.DISABLED and abs(self.value) < self.tolerance:
|
||||
|
Reference in New Issue
Block a user