misc: Run pre-commit run --all-files

This is reflect the updates made to black when running `pre-commit
autoupdate`.

Change-Id: Ifb7fea117f354c7f02f26926a5afdf7d67bc5919
This commit is contained in:
Bobby R. Bruce
2023-10-09 12:40:48 -07:00
parent 317d2fb5b8
commit ddf6cb88e4
183 changed files with 120 additions and 175 deletions

View File

@@ -150,7 +150,6 @@ def plotLowPStates(
for delay in delayValues:
for bank_util in bankUtilValues:
for seq_bytes in seqBytesValues:
for line in stats_file:
if "Begin" in line:
break
@@ -261,7 +260,6 @@ def plotStackedStates(delay, states_list, bottom_state, plot_name, ylabel_str):
ind = np.arange(N)
for sub_idx, bank_util in enumerate(bankUtilValues):
l_states = {}
p_states = {}

View File

@@ -46,11 +46,11 @@ except ImportError:
import sys
import re
# This script is intended to post process and plot the output from
# running configs/dram/lat_mem_rd.py, as such it parses the simout.txt and
# stats.txt to get the relevant data points.
def main():
if len(sys.argv) != 2:
print("Usage: ", sys.argv[0], "<simout directory>")
exit(-1)
@@ -122,7 +122,7 @@ def main():
)
exit(-1)
for (r, l) in zip(ranges, final_rd_lat):
for r, l in zip(ranges, final_rd_lat):
print(r, round(l, 2))
# lazy version to check if an integer is a power of two

View File

@@ -47,12 +47,12 @@ except ImportError:
import sys
import re
# Determine the parameters of the sweep from the simout output, and
# then parse the stats and plot the 3D surface corresponding to the
# different combinations of parallel banks, and stride size, as
# generated by the config/dram/sweep.py script
def main():
if len(sys.argv) != 3:
print("Usage: ", sys.argv[0], "-u|p|e <simout directory>")
exit(-1)

View File

@@ -140,7 +140,6 @@ def wrapForGraphic(filename, width="1.0"):
def startDocText(outfile):
start_stuff = """
\\documentclass[a4paper,landscape,twocolumn]{article}
@@ -152,7 +151,6 @@ def startDocText(outfile):
def endDocText(outfile):
end_stuff = """
\\end{document}