Skip to content

Commit 966a78f

Browse files
author
MohamedElgammal
committed
fix python code format
1 parent 1d26640 commit 966a78f

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def create_job(
462462
# determine spacing for nice output
463463
num_spaces_before = int((longest_name - len(config.task_name))) + 8
464464
num_spaces_after = int((longest_arch_circuit - len(work_dir + "/{}".format(param_string))))
465-
465+
466466
expected_min_w = ret_expected_min_w(circuit, arch, golden_results, param)
467467
expected_min_w = (
468468
int(expected_min_w * args.minw_hint_factor)

vtr_flow/scripts/run_vtr_task.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,8 @@ def create_run_script(args, job, work_dir):
368368
if memory_estimate < 0:
369369
memory_estimate = 0
370370

371-
separator = ' '
371+
separator = " "
372372
command_options_list = job.run_command()
373-
'''
374-
index = command_options_list.index('-name')
375-
del command_options_list[index]
376-
del command_options_list[index]
377-
'''
378373
command_options = separator.join(command_options_list)
379374

380375
human_readable_runtime_est = format_human_readable_time(runtime_estimate)
@@ -399,7 +394,7 @@ def create_run_script(args, job, work_dir):
399394
end="",
400395
)
401396

402-
os.system('chmod +x ' + str(run_script_file))
397+
os.system("chmod +x " + str(run_script_file))
403398
return str(run_script_file)
404399

405400

@@ -413,7 +408,6 @@ def ret_expected_runtime(job, work_dir):
413408
metrics = golden_results.metrics(job.arch(), job.circuit(), job.script_params())
414409
if metrics == None:
415410
metrics = golden_results.metrics(job.arch(), job.circuit(), "common")
416-
#print(metrics)
417411

418412
if "vtr_flow_elapsed_time" in metrics:
419413
seconds = float(metrics["vtr_flow_elapsed_time"])

0 commit comments

Comments
 (0)