From 0e3030dc23183379fe83dd48319c8a4973da5347 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Tue, 17 Dec 2024 15:37:19 -0800 Subject: [PATCH] Remove python semicolons --- benchmarks/embench/embench_arch_sweep.py | 6 +++--- bin/parseHPMC.py | 2 +- bin/regression-wally | 4 ++-- synthDC/extractSummary.py | 2 +- synthDC/scripts/wrapperGen.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/benchmarks/embench/embench_arch_sweep.py b/benchmarks/embench/embench_arch_sweep.py index 99d49e7be..6e6d2edab 100755 --- a/benchmarks/embench/embench_arch_sweep.py +++ b/benchmarks/embench/embench_arch_sweep.py @@ -43,8 +43,8 @@ def tabulate_arch_sweep(directory): match = re.search(p, line) if match: prog = match.group(1) - result = match.group(2); - d[arch][prog] = result; + result = match.group(2) + d[arch][prog] = result #print(match.group(1)+" " + match.group(2)) f.close() for arch in [""] + archs: @@ -53,7 +53,7 @@ def tabulate_arch_sweep(directory): for prog in d[archs[0]]: print(prog, end="\t") for arch in archs: - entry = d[arch].get(prog, "n/a"); + entry = d[arch].get(prog, "n/a") print (entry, end="\t") print("") print("New geo mean", end="\t") diff --git a/bin/parseHPMC.py b/bin/parseHPMC.py index c9d9b8ffc..2cabc07ec 100755 --- a/bin/parseHPMC.py +++ b/bin/parseHPMC.py @@ -329,7 +329,7 @@ def ReportAsGraph(benchmarkDict, bar, FileName): # group the parameterizations by the common typ. sequencies = {} for (name, typ, entries, size, value) in benchmarkDict['Mean']: - if not typ in sequencies: + if typ not in sequencies: sequencies[typ] = [(entries if not args.size else int(size/8), value)] else: sequencies[typ].append((entries if not args.size else int(size/8) ,value)) diff --git a/bin/regression-wally b/bin/regression-wally index 60a40de48..6561ff7b0 100755 --- a/bin/regression-wally +++ b/bin/regression-wally @@ -298,14 +298,14 @@ def addTestsByDir(testDir, config, sim, lockstepMode=0): if coverStr == "--fcov": # use --fcov in place of --lockstep cmdPrefix=f"wsim --sim {sim} {coverStr} {config}" gs="Mismatches : 0" - if ("cvw-arch-verif/tests" in testDir and not "priv" in testDir): + if ("cvw-arch-verif/tests" in testDir and "priv" not in testDir): fileEnd = "ALL.elf" else: fileEnd = ".elf" elif coverStr == "--ccov": cmdPrefix=f"wsim --sim {sim} {coverStr} {config}" gs="Single Elf file tests are not signatured verified." - if ("cvw-arch-verif/tests" in testDir and not "priv" in testDir): + if ("cvw-arch-verif/tests" in testDir and "priv" not in testDir): fileEnd = "ALL.elf" else: fileEnd = ".elf" diff --git a/synthDC/extractSummary.py b/synthDC/extractSummary.py index 826be54d8..19446ca2b 100755 --- a/synthDC/extractSummary.py +++ b/synthDC/extractSummary.py @@ -282,4 +282,4 @@ if __name__ == '__main__': plotConfigs('sky130', mod='orig') plotConfigs('tsmc28psyn', mod='orig') normAreaDelay(mod='orig') - os.system("./extractArea.pl"); + os.system("./extractArea.pl") diff --git a/synthDC/scripts/wrapperGen.py b/synthDC/scripts/wrapperGen.py index f91052638..eb3e78e93 100755 --- a/synthDC/scripts/wrapperGen.py +++ b/synthDC/scripts/wrapperGen.py @@ -15,7 +15,7 @@ import os parser = argparse.ArgumentParser() parser.add_argument("DESIGN") -parser.add_argument("HDLPATH"); +parser.add_argument("HDLPATH") args=parser.parse_args()