From 30adbe9381d70a7f9e7b20030e2299ec782b7cff Mon Sep 17 00:00:00 2001 From: panepucci Date: Fri, 18 Dec 2015 10:12:30 +0100 Subject: [PATCH] Closedown --- script/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 60622f4..5a2a2f0 100644 --- a/script/local.py +++ b/script/local.py @@ -47,7 +47,7 @@ def fit(ydata, xdata = None): p.addSeries(LinePlotSeries("fit")) p.getSeries(1).setData(fit_x, fit_y) - if abs(mean - xdata[index_max]) < ((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()) return (norm, mean, sigma)