added holo scans
This commit is contained in:
86
overnight.py
86
overnight.py
@ -1832,6 +1832,92 @@ def overnight():
|
|||||||
cycle_magnet().wait()
|
cycle_magnet().wait()
|
||||||
|
|
||||||
|
|
||||||
|
#def holo_scan():
|
||||||
|
|
||||||
|
# energies = [
|
||||||
|
# 528.5,
|
||||||
|
# 529.2,
|
||||||
|
# 529.7,
|
||||||
|
# 530.2,
|
||||||
|
# 531.0,
|
||||||
|
# ]
|
||||||
|
|
||||||
|
# n_repeats = 100
|
||||||
|
# energies = sorted(sorted(set(energies)) * n_repeats)
|
||||||
|
|
||||||
|
# for E in energies:
|
||||||
|
#
|
||||||
|
# mono.set(E).wait()
|
||||||
|
#
|
||||||
|
# printable_E = str(round(E, 1)).replace(".", "_")
|
||||||
|
|
||||||
|
# fname = f"holo_scan_{printable_E}eV"
|
||||||
|
# print(fname)
|
||||||
|
|
||||||
|
# while check_intensity.wants_repeat():
|
||||||
|
# daq.acquire(fname, n_pulses=100).wait()
|
||||||
|
|
||||||
|
def holo_scan():
|
||||||
|
|
||||||
|
energies = [
|
||||||
|
528.5,
|
||||||
|
529.2,
|
||||||
|
529.7,
|
||||||
|
530.2,
|
||||||
|
531.0,
|
||||||
|
]
|
||||||
|
|
||||||
|
n_repeats = 1
|
||||||
|
reps = 100
|
||||||
|
|
||||||
|
energies = sorted(sorted(set(energies)) * n_repeats)
|
||||||
|
|
||||||
|
for E in energies:
|
||||||
|
|
||||||
|
mono.set(E).wait()
|
||||||
|
|
||||||
|
for i in range(reps):
|
||||||
|
|
||||||
|
printable_E = str(round(E, 1)).replace(".", "_")
|
||||||
|
|
||||||
|
fname = f"holo_scan_{i:03}_{printable_E}eV"
|
||||||
|
print(fname)
|
||||||
|
|
||||||
|
while check_intensity.wants_repeat():
|
||||||
|
daq.acquire(fname, n_pulses=100, is_scan_step=(i != 0)).wait()
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
def holo_scan():
|
||||||
|
|
||||||
|
energies = [
|
||||||
|
528.5,
|
||||||
|
529.2,
|
||||||
|
529.7,
|
||||||
|
530.2,
|
||||||
|
531.0,
|
||||||
|
]
|
||||||
|
|
||||||
|
n_repeats = 1
|
||||||
|
reps = 5
|
||||||
|
|
||||||
|
energies = sorted(sorted(set(energies)) * n_repeats)
|
||||||
|
|
||||||
|
for i in range(reps):
|
||||||
|
|
||||||
|
for E in energies:
|
||||||
|
|
||||||
|
mono.set(E).wait()
|
||||||
|
|
||||||
|
|
||||||
|
printable_E = str(round(E, 1)).replace(".", "_")
|
||||||
|
|
||||||
|
fname = f"holo_scan_{i:03}_{printable_E}eV"
|
||||||
|
print(fname)
|
||||||
|
|
||||||
|
while check_intensity.wants_repeat():
|
||||||
|
daq.acquire(fname, n_pulses=100).wait()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user