Skip to content

Commit fb89980

Browse files
author
MohamedElgammal
committed
Revert "fix python code format"
This reverts commit 966a78f.
1 parent d33fb39 commit fb89980

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,13 @@ 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+
'''
373378
command_options = separator.join(command_options_list)
374379

375380
human_readable_runtime_est = format_human_readable_time(runtime_estimate)
@@ -394,7 +399,7 @@ def create_run_script(args, job, work_dir):
394399
end="",
395400
)
396401

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

400405

@@ -408,6 +413,7 @@ def ret_expected_runtime(job, work_dir):
408413
metrics = golden_results.metrics(job.arch(), job.circuit(), job.script_params())
409414
if metrics == None:
410415
metrics = golden_results.metrics(job.arch(), job.circuit(), "common")
416+
#print(metrics)
411417

412418
if "vtr_flow_elapsed_time" in metrics:
413419
seconds = float(metrics["vtr_flow_elapsed_time"])

0 commit comments

Comments
 (0)