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)
|
||||
|
||||
Reference in New Issue
Block a user