Skip to content

Commit 1425bdf

Browse files
committed
fixed python formating
1 parent 70a3510 commit 1425bdf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

vtr_flow/scripts/run_vtr_flow.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,9 @@ def vtr_command_main(arg_list, prog=None):
524524
error_status = "Error"
525525

526526
assert args.temp_dir
527-
528527
temp_dir = Path(args.temp_dir)
529528
if not str(temp_dir).startswith("/"):
530529
temp_dir = Path(os.getcwd() + "/" + args.temp_dir)
531-
532530
# Specify how command should be run
533531
command_runner = vtr.CommandRunner(
534532
track_memory=args.track_memory_usage,
@@ -548,11 +546,11 @@ def vtr_command_main(arg_list, prog=None):
548546
vpr_args = process_unknown_args(unknown_args)
549547
vpr_args = process_vpr_args(args, prog, temp_dir, vpr_args)
550548
if args.sdc_file:
551-
sdc_file_copy = get_sdc_file(args.sdc_file, prog, temp_dir)
549+
sdc_file_copy = get_sdc_file(args.sdc_file, temp_dir)
552550
vpr_args["sdc_file"] = Path(sdc_file_copy).name
553551
if args.read_vpr_constraints:
554552
vpr_constraint_file_copy = get_read_vpr_constraints(
555-
args.read_vpr_constraints, prog, temp_dir
553+
args.read_vpr_constraints, temp_dir
556554
)
557555
vpr_args["read_vpr_constraints"] = Path(vpr_constraint_file_copy).name
558556

@@ -767,7 +765,7 @@ def process_vpr_args(args, prog, temp_dir, vpr_args):
767765
return vpr_args
768766

769767

770-
def get_sdc_file(sdc_file, prog, temp_dir):
768+
def get_sdc_file(sdc_file, temp_dir):
771769
"""
772770
takes in the sdc_file and returns a path to that file if it exists.
773771
"""
@@ -779,7 +777,7 @@ def get_sdc_file(sdc_file, prog, temp_dir):
779777
return str(vtr.verify_file(sdc_file_copy, "sdc file"))
780778

781779

782-
def get_read_vpr_constraints(read_vpr_constraints, prog, temp_dir):
780+
def get_read_vpr_constraints(read_vpr_constraints, temp_dir):
783781
"""
784782
takes in the read_vpr_constraints and returns a path to that file if it exists.
785783
"""

0 commit comments

Comments
 (0)