This commit is contained in:
gobbo_a
2026-02-09 15:06:52 +01:00
parent 4f6a49c538
commit f841fbc0ea
163 changed files with 576 additions and 49654 deletions

View File

@@ -103,7 +103,7 @@ if do_elog:
log_msg = log_msg + "BPM2: " + BPM2[U] + "\n"
log_msg = log_msg + "MQUA center: " + str(ui) + "\n"
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
file_name = os.path.abspath(get_context().setup.getContextPath() + "/BPM_Quad_Plot.png")
file_name = os.path.abspath(Setup.getContextPath() + "/BPM_Quad_Plot.png")
plt.saveSnapshot(file_name , "png")
elog(title, log_msg, [file_name,])

2
script/Alignment/Gun_solenoid_alignment.py Executable file → Normal file
View File

@@ -132,7 +132,7 @@ if do_elog:
log_msg = log_msg + "\n\n" + r.print()
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
file_name = os.path.abspath(get_context().setup.getContextPath() + "/centroid_excursion.png")
file_name = os.path.abspath(Setup.getContextPath() + "/centroid_excursion.png")
centroid_plot.saveSnapshot(file_name , "png")
elog("Gun solenoid alignment", log_msg, [file_name,])

2
script/Alignment/Laser_gun_alignment.py Executable file → Normal file
View File

@@ -133,7 +133,7 @@ if do_elog:
log_msg = log_msg + "\n\n" + r.print()
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
file_name = os.path.abspath(get_context().setup.getContextPath() + "/centroid_excursion.png")
file_name = os.path.abspath(Setup.getContextPath() + "/centroid_excursion.png")
centroid_plot.saveSnapshot(file_name , "png")
elog("Laser alignment with phase scan", log_msg, [file_name,])