From 364ff1e6bd35c94c5130bacda96702cd5862b852 Mon Sep 17 00:00:00 2001 From: panepucci Date: Fri, 18 Dec 2015 11:05:02 +0100 Subject: [PATCH] Script execution --- script/local.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 1be6194..f4ca0ed 100644 --- a/script/local.py +++ b/script/local.py @@ -46,7 +46,11 @@ def fit(ydata, xdata = None): fit_y.append(fitted_gaussian_function.value(x)) p.addSeries(LinePlotSeries("fit")) p.getSeries(1).setData(fit_x, fit_y) - + + print "---" + print mean, xdata[index_max], abs(mean - xdata[index_max]) + print scale_x, (scale_x[0] + scale_x[1])/2, abs((scale_x[0] + scale_x[1])/2) + print abs(mean - xdata[index_max]) < abs((scale_x[0] + scale_x[1])/2) if abs(mean - xdata[index_max]) < abs((scale_x[0] + scale_x[1])/2): print "Mean -> " + str(mean) p.addMarker(mean, None, "Mean="+str(round(norm,2)), Color.MAGENTA.darker())