From b36a635f467909775ae2d3f54c51e32e6c7df25f Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 22 Jun 2021 21:31:00 +0200 Subject: [PATCH] be explicit about the starting the Task immediately --- devices/undulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/undulator.py b/devices/undulator.py index 9fb08ae..e01b41d 100644 --- a/devices/undulator.py +++ b/devices/undulator.py @@ -65,7 +65,7 @@ class Undulators(Adjustable): tasks.append(t) wait_for_all(tasks) 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) @@ -166,7 +166,7 @@ class CHIC(PVAdjustable): value /= 1000 def change(): - super().set_target_value(value).wait() + super().set_target_value(value, hold=False).wait() self.pvs.start.put(1, wait=True) #TODO: test whether an additional sleep is needed