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")