be explicit about the starting the Task immediately
This commit is contained in:
@ -65,7 +65,7 @@ class Undulators(Adjustable):
|
|||||||
tasks.append(t)
|
tasks.append(t)
|
||||||
wait_for_all(tasks)
|
wait_for_all(tasks)
|
||||||
print("Warning: CHIC adjustment is still commented!")
|
print("Warning: CHIC adjustment is still commented!")
|
||||||
# self.chic.set_target_value(value).wait() #TODO: test whether an additional sleep is needed
|
# self.chic.set_target_value(value, hold=False).wait() #TODO: test whether an additional sleep is needed
|
||||||
|
|
||||||
return self._as_task(change, hold=hold)
|
return self._as_task(change, hold=hold)
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ class CHIC(PVAdjustable):
|
|||||||
value /= 1000
|
value /= 1000
|
||||||
|
|
||||||
def change():
|
def change():
|
||||||
super().set_target_value(value).wait()
|
super().set_target_value(value, hold=False).wait()
|
||||||
self.pvs.start.put(1, wait=True)
|
self.pvs.start.put(1, wait=True)
|
||||||
#TODO: test whether an additional sleep is needed
|
#TODO: test whether an additional sleep is needed
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user