|
1 | 1 | #!/usr/bin/env python
|
2 | 2 |
|
| 3 | + |
3 | 4 | import pandas as pd
|
4 | 5 | import numpy as np
|
5 | 6 | import re
|
@@ -37,7 +38,7 @@ def draw_circle_frame(self, x0, y0, r):
|
37 | 38 |
|
38 | 39 | frame_dict = {'polygon': draw_poly_frame, 'circle': draw_circle_frame}
|
39 | 40 | if frame not in frame_dict:
|
40 |
| - raise ValueError, 'unknown value for `frame`: %s' % frame |
| 41 | + raise ValueError("unknown value for `frame`: %s" % frame) |
41 | 42 |
|
42 | 43 | class RadarAxes(PolarAxes):
|
43 | 44 | """
|
@@ -143,7 +144,7 @@ def readFile(fname):
|
143 | 144 | res["counters"] = readCounters(f)
|
144 | 145 | return res
|
145 | 146 | except (OSError, IOError):
|
146 |
| - print "Cannot open " + fname |
| 147 | + print("Cannot open " + fname) |
147 | 148 | return None
|
148 | 149 |
|
149 | 150 | def usefulValues(l):
|
@@ -235,7 +236,7 @@ def compPie(data):
|
235 | 236 | compKeys[key] = data[key]
|
236 | 237 | else:
|
237 | 238 | nonCompKeys[key] = data[key]
|
238 |
| - print "comp keys:", compKeys, "\n\n non comp keys:", nonCompKeys |
| 239 | + print("comp keys:", compKeys, "\n\n non comp keys:", nonCompKeys) |
239 | 240 | return [compKeys, nonCompKeys]
|
240 | 241 |
|
241 | 242 | def drawMainPie(data, filebase, colors):
|
@@ -299,10 +300,10 @@ def main():
|
299 | 300 | chartType = "radar"
|
300 | 301 | drawRadarChart(data, s, filebase, params, colors[n])
|
301 | 302 | """radar Charts finish here"""
|
302 |
| - plt.savefig(filebase+"_"+s+"_"+chartType, bbox_inches='tight') |
303 |
| - elif s == 'timers': |
304 |
| - print "overheads in "+filebase |
305 |
| - numThreads = tmp[s]['SampleCount']['Total_OMP_parallel'] |
| 303 | + plt.savefig(filebase + "_" + s + "_" + chartType, bbox_inches="tight") |
| 304 | + elif s == "timers": |
| 305 | + print("overheads in " + filebase) |
| 306 | + numThreads = tmp[s]["SampleCount"]["Total_OMP_parallel"] |
306 | 307 | for key in data.keys():
|
307 | 308 | if key[0:5] == 'Total':
|
308 | 309 | del data[key]
|
|
0 commit comments