Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 7a49b276 authored by augustin_s's avatar augustin_s :snake:
Browse files

added holo scans

parent 4b7c1f5a
No related branches found
No related tags found
No related merge requests found
...@@ -1832,6 +1832,92 @@ def overnight(): ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment