From 2d7b52b0e7076f822c454f2f0cf4445470f7b824 Mon Sep 17 00:00:00 2001 From: gac-furka Date: Sun, 18 Jul 2021 14:42:35 +0200 Subject: [PATCH] Chic wait =2 (10) for dk<0.01 (>0.01) - not tested yet --- undulator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/undulator.py b/undulator.py index e287048..47c354a 100644 --- a/undulator.py +++ b/undulator.py @@ -65,7 +65,11 @@ class Undulators(Adjustable): tasks.append(t) wait_for_all(tasks) print("CHIC adjustment is automatic") - sleep(10) + + if abs(delta)>0.001 : + sleep(10) + else : + sleep(2) #self.chic.set_target_value(value, hold=False) #TODO: test whether an additional sleep is needed #print("CHIC adjustment done")