Skip to content

Commit cd3c985

Browse files
committed
make format-py
1 parent 82a6ba1 commit cd3c985

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

vtr_flow/scripts/python_libs/vtr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
verify_file,
2121
pretty_print_table,
2222
find_task_dir,
23-
set_global_run_dir
23+
set_global_run_dir,
2424
)
2525
from .log_parse import (
2626
determine_lut_size,

vtr_flow/scripts/python_libs/vtr/parse_vtr_task.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ def vtr_command_argparser(prog=None):
131131
help="QoR geomeans are not computed by default",
132132
)
133133

134-
parser.add_argument("-run", default=None, type=str, help="Parse the specified run directory. Defaults to the latest.")
134+
parser.add_argument(
135+
"-run",
136+
default=None,
137+
type=str,
138+
help="Parse the specified run directory. Defaults to the latest.",
139+
)
135140

136141
parser.add_argument("-revision", default="", help="Revision number")
137142

@@ -527,7 +532,9 @@ def calc_geomean(args, configs):
527532
print("date\trevision", file=out)
528533
first = False
529534
lines = summary.readlines()
530-
run_dir_name = os.path.basename(get_latest_run_dir(find_task_dir(configs[0], args.alt_tasks_dir)))
535+
run_dir_name = os.path.basename(
536+
get_latest_run_dir(find_task_dir(configs[0], args.alt_tasks_dir))
537+
)
531538
print(
532539
run_dir_name,
533540
file=out,

vtr_flow/scripts/python_libs/vtr/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# the latest run directory will be parsed.
2727
global_run_dir_name = None
2828

29+
2930
class RawDefaultHelpFormatter(
3031
argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter
3132
):
@@ -228,6 +229,7 @@ def run_system_command(
228229

229230
# pylint: enable=too-many-arguments, too-many-instance-attributes, too-few-public-methods, too-many-locals
230231

232+
231233
def set_global_run_dir(run_dir_name):
232234
"""
233235
Set the global run directory name.
@@ -591,7 +593,7 @@ def get_latest_run_dir_name(base_dir):
591593

592594
# Currently one-past the last existing run dir,
593595
# to get latest existing, subtract one
594-
return run_dir_name(run_number-1)
596+
return run_dir_name(run_number - 1)
595597

596598

597599
def run_dir_name(run_num):

vtr_flow/scripts/python_libs/vtr/vpr/vpr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ def run_second_time(
298298
if "write_intra_cluster_router_lookahead" in second_run_args:
299299
intra_cluster_router_lookahead = second_run_args["write_intra_cluster_router_lookahead"]
300300
second_run_args["read_intra_cluster_router_lookahead"] = intra_cluster_router_lookahead
301-
second_run_args["write_intra_cluster_router_lookahead"] = (
302-
"intra_cluster_router_lookahead2.capnp"
303-
)
301+
second_run_args[
302+
"write_intra_cluster_router_lookahead"
303+
] = "intra_cluster_router_lookahead2.capnp"
304304

305305
# run VPR
306306
run(

0 commit comments

Comments
 (0)