From 72c1704a62c0174ef1def096964abd70e175dbf3 Mon Sep 17 00:00:00 2001 From: kalt_r Date: Fri, 1 Jul 2016 09:54:38 +0200 Subject: [PATCH] Script execution --- script/KR84_test.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/script/KR84_test.py b/script/KR84_test.py index 5ac4d94..e330f9d 100644 --- a/script/KR84_test.py +++ b/script/KR84_test.py @@ -12,10 +12,10 @@ class all_statistics_data (object): m10 = statistics_data() def return_string(self): - print "Statistics:\tmin\tmean\tmax\tstdev" - print "Saturation :\t" + str(self.sat.min)[:7] + "\t" + str(self.sat.mean)[:7] + "\t" + str(self.sat.max)[:7] + "\t" + str(self.sat.stdev)[:7] - print "5% out of sat :\t" + str(self.m5.min)[:7] + "\t" + str(self.m5.mean)[:7] + "\t" + str(self.m5.max)[:7] + "\t" + str(self.m5.stdev)[:7] - print "10% out of sat:\t" + str(self.m10.min)[:7] + "\t" + str(self.m10.mean)[:7] + "\t" + str(self.m10.max)[:7] + "\t" + str(self.m10.stdev)[:7] + ret_str = "Statistics:\tmin\tmean\tmax\tstdev" + ret_str = ret_str + "\nSaturation :\t" + str(self.sat.min)[:7] + "\t" + str(self.sat.mean)[:7] + "\t" + str(self.sat.max)[:7] + "\t" + str(self.sat.stdev)[:7] + ret_str = ret_str + "\n5% out of sat :\t" + str(self.m5.min)[:7] + "\t" + str(self.m5.mean)[:7] + "\t" + str(self.m5.max)[:7] + "\t" + str(self.m5.stdev)[:7] + ret_str = ret_str + "\n10% out of sat:\t" + str(self.m10.min)[:7] + "\t" + str(self.m10.mean)[:7] + "\t" + str(self.m10.max)[:7] + "\t" + str(self.m10.stdev)[:7] def statistics_calc(data_in): @@ -65,4 +65,5 @@ pre_jit_phase = all_statistics_calc(scan_result.getReadable(5)) kly_jit_amplt = all_statistics_calc(scan_result.getReadable(6)) kly_jit_phase = all_statistics_calc(scan_result.getReadable(7)) -ref_jit_amplt.return_string() +mystr = ref_jit_amplt.return_string() +print mystr