From ecd174e1989f11586c5745265d85c3b97be2dfb5 Mon Sep 17 00:00:00 2001 From: voulot_d Date: Tue, 14 Feb 2017 11:33:46 +0100 Subject: [PATCH] Script execution --- script/RFscan/GunScan.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/RFscan/GunScan.py b/script/RFscan/GunScan.py index 5641b6c..3c4cd27 100644 --- a/script/RFscan/GunScan.py +++ b/script/RFscan/GunScan.py @@ -28,13 +28,13 @@ phase.initialize() #camtool.startReceiver() #x = camtool.getValue("x_com") #dx = camtool.getValue("x_rms") -x = phase.getValue() -dx = (phase.getValue() - 85) * (phase.getValue() - 85) +xb = phase.getValue() +dxb = (phase.getValue() - 85) * (phase.getValue() - 85) try: - xb = create_averager(x, nb, 0.100) - dxb = create_averager(dx, nb, 0.100) +# xb = create_averager(x, nb, 0.100) +# dxb = create_averager(dx, nb, 0.100) r = lscan(phase, [xb, dxb], start, stop, step , latency=lat, after_read = after) rf_phase = r.getPositions(0) E = [val.mean/1000.0/disp*energy0 for val in r.getReadable(0)]