From b8c08e2296c96f7ffbce665198fd24cbbd846998 Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Fri, 5 May 2017 15:38:17 +0200 Subject: [PATCH] Script execution --- script/test/WireScanTest2.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/script/test/WireScanTest2.py b/script/test/WireScanTest2.py index 21e8e94..556c894 100644 --- a/script/test/WireScanTest2.py +++ b/script/test/WireScanTest2.py @@ -28,7 +28,7 @@ for i in range(len(blms)): #set_attribute(path, "Gauss Sigma", float("nan") if (sigma is None) else sigma) print [off, amp, com, sigma] - samples[0].append(ć);samples[1].append(rms);samples[2].append(com);samples[3].append(sigma) + samples[0].append(rms_com);samples[1].append(rms);samples[2].append(com);samples[3].append(sigma) from mathutils import Gaussian g = Gaussian(amp, com, sigma) @@ -40,13 +40,13 @@ for i in range(len(blms)): stats[i].append( (mean(sample), stdev(sample)) if len(sample)>0 else (float("nan"), float("nan")) ) print stats + msg = "" for i in range(len(blms)): - msg += "BLM " + str(i)+ ":" - msg += " RMS:" + str(stats[i][0]) - msg += " RMS COM:" + str(stats[i][1]) - msg += " Gauss COM:" + str(stats[i][2]) - msg += " Gauss Sigma:" + str(stats[i][3]) + msg += "BLM " + str(i) + ":\n" + msg += " RMS: " + "%.4f" % stats[i][0][0] + " " + unichr(0x03C3) + "=" + "%.4f" % stats[i][0][1] + "\n" + msg += " RMS COM: " + "%.4f" % stats[i][1][0] + " " + unichr(0x03C3) + "=" + "%.4f" % stats[i][1][1] + "\n" + msg += " Gauss COM: " + "%.4f" % stats[i][2][0] + " " + unichr(0x03C3) + "=" + "%.4f" % stats[i][2][1] + "\n" + msg += " Gauss Sigma: " + "%.4f" % stats[i][3][0] + " " + unichr(0x03C3) + "=" + "%.4f" % stats[i][3][1] + "\n" -print msg - \ No newline at end of file +print msg \ No newline at end of file