Closedown
This commit is contained in:
@@ -23,7 +23,7 @@ phase.config.maxValue = 360.0
|
||||
phase.config.resolution = 0.5
|
||||
phase.initialize()
|
||||
|
||||
camtool = Camtool("sflca", "10000")
|
||||
camtool = Camtool("sflca:10000")
|
||||
camtool.startPipeline("simulated")
|
||||
camtool.startReceiver()
|
||||
x = camtool.getValue("x_fit_mean")
|
||||
@@ -40,10 +40,6 @@ try:
|
||||
dE = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
|
||||
finally:
|
||||
phase.close()
|
||||
V.close()
|
||||
P.close()
|
||||
st.close()
|
||||
camtool.close()
|
||||
|
||||
p = plot([E, dE],"data", rf_phase, title="Phase scan")[0]
|
||||
p.addSeries(LinePlotSeries("fit"))
|
||||
p.getSeries(1).setData(fit_x, fit_y)
|
||||
|
||||
@@ -42,7 +42,7 @@ finally:
|
||||
y = charge
|
||||
x = rf_phase
|
||||
index_max = y.index(max(y))
|
||||
phase_ref = x[index_max] - 90
|
||||
phase_ref = x[index_max] - 80
|
||||
phase_offset = - phase_ref
|
||||
caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user