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
+5 -5
View File
@@ -95,7 +95,7 @@ camera_name = screen
phase.config.minValue = -90.0
phase.config.maxValue = 360.0
phase.config.precision = 4
phase.config.resolution = 0.05
phase.config.deadband = 0.05
#phase.config.rotation = True # this may cause trouble when scanning around zero
phase.config.save()
phase.initialize()
@@ -241,13 +241,13 @@ if do_elog:
log_msg = log_msg + "Bunch length fit: %0.1f" % bunch_length_fit + " fs\n"
log_msg = log_msg + "Calibration: %0.4f" % calib + " fs/um"
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
file_name1 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthScanPlot1.png")
file_name1 = os.path.abspath(Setup.getContextPath() + "/BunchLengthScanPlot1.png")
plt11.saveSnapshot(file_name1, "png", Dimension(400, 300))
file_name2 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthCurrent1.png")
file_name2 = os.path.abspath(Setup.getContextPath() + "/BunchLengthCurrent1.png")
plt21.saveSnapshot(file_name2, "png", Dimension(400, 300))
file_name3 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthScanPlot2.png")
file_name3 = os.path.abspath(Setup.getContextPath() + "/BunchLengthScanPlot2.png")
plt12.saveSnapshot(file_name3, "png", Dimension(400, 300))
file_name4 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthCurrent2.png")
file_name4 = os.path.abspath(Setup.getContextPath() + "/BunchLengthCurrent2.png")
plt22.saveSnapshot(file_name4, "png", Dimension(400, 300))
elog(title, log_msg, [file_name1, file_name2, file_name3, file_name4])
+1 -1
View File
@@ -1,6 +1,6 @@
import ch.psi.pshell.imaging.ImageBuffer as ImageBuffer
import json
import ch.psi.pshell.bs.PipelineServer as PipelineServer
import ch.psi.pshell.camserver.PipelineSource as PipelineServer
import ch.psi.pshell.imaging.Colormap as Colormap