diff --git a/script/Alignment/Gun_solenoid_alignment_dv_sim.py b/script/Alignment/Gun_solenoid_alignment_dv_sim.py index fce8c7c..782529c 100644 --- a/script/Alignment/Gun_solenoid_alignment_dv_sim.py +++ b/script/Alignment/Gun_solenoid_alignment_dv_sim.py @@ -44,11 +44,7 @@ r = lscan(I_set, [I_read, bpm_x, bpm_y], I1, I2, dI, 1.0) #caput("SIN-CVME-TIMAST-TMA:LaserDelayControl", 1) # take the result of the scan and do the plots -centroid_x = r.getReadable(1) -centroid_y = r.getReadable(2) -print(centroid_x) -print(centroid_y) -plot(centroid_y, xdata=centroid_x, title = "Centroid excursion") +plot(r.getReadable(2), xdata=r.getReadable(1), title = "Centroid excursion") # save the entry in the logbook msg = str(r)