XRD update
This commit is contained in:
12
undulator.py
12
undulator.py
@@ -9,12 +9,12 @@ from slic.core.scanner.scanbackend import wait_for_all #, stop_all
|
||||
|
||||
# 14 is the CHIC
|
||||
n_unds = [
|
||||
6, 7, 8, 9, 10, 11, 12, 13,
|
||||
15, 16, 17, 18, 19, 20, 21, 22
|
||||
6, 13,
|
||||
15, 16, 17, 18, 19, 20, 21
|
||||
]
|
||||
|
||||
und_names = [f"SATUN{n:02}-UIND030" for n in n_unds]
|
||||
und_name_cal = "SATUN13-UIND030"
|
||||
und_name_cal = "SATUN06-UIND030"
|
||||
|
||||
|
||||
|
||||
@@ -64,9 +64,9 @@ class Undulators(Adjustable):
|
||||
t = a.set_target_value(k_new, hold=False)
|
||||
tasks.append(t)
|
||||
wait_for_all(tasks)
|
||||
print("CHIC adjustment follows")
|
||||
self.chic.set_target_value(value, hold=False).wait() #TODO: test whether an additional sleep is needed
|
||||
print("CHIC adjustment done")
|
||||
# print("CHIC adjustment follows")
|
||||
# self.chic.set_target_value(value, hold=False).wait() #TODO: test whether an additional sleep is needed
|
||||
# print("CHIC adjustment done")
|
||||
|
||||
return self._as_task(change, hold=hold)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user