This commit is contained in:
gac-x03da
2020-07-11 17:23:31 +02:00
parent 63d74de9cf
commit 5c97352aa8
5 changed files with 310 additions and 5 deletions
+4 -1
View File
@@ -89,6 +89,7 @@ task = None
try:
for cur_range in range(len(ranges)):
print "range", cur_range
cur_iteration = 0
skip_iteration = False
vars = ranges[cur_range].vars
@@ -99,6 +100,7 @@ try:
eph = vars[3]
if eph and (not math.isnan(eph)):
Eph.move(eph)
time.sleep(5.0)
Scienta.lowEnergy.write(adjusted_ranges[cur_range][0])
Scienta.highEnergy.write(adjusted_ranges[cur_range][1])
@@ -117,7 +119,8 @@ try:
task = fork(plot_cur_spectrum)
path="scan" + str(cur_range+1) + "/"
for cur_iteration in range(vars[2]):
for cur_iteration in range(vars[2]):
print "iteration", cur_iteration
p = plots[cur_range+1]
p.setTitle(str(ranges[cur_range]) + " - iteration " + str(cur_iteration+1))
while True: