Skip to content

Commit 1945a23

Browse files
committed
pass pylint
1 parent 715e595 commit 1945a23

File tree

1 file changed

+18
-9
lines changed
  • vtr_flow/scripts/python_libs/vtr

1 file changed

+18
-9
lines changed

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def find_longest_task_description(configs):
326326

327327

328328
def get_work_dir_addr(arch, circuit, noc_traffic):
329+
""" Get the work directory address under under run_dir """
329330
work_dir = None
330331
if noc_traffic:
331332
work_dir = str(PurePath(arch).joinpath(circuit).joinpath(noc_traffic))
@@ -335,7 +336,23 @@ def get_work_dir_addr(arch, circuit, noc_traffic):
335336
return work_dir
336337

337338

339+
def create_second_parse_cmd(config):
340+
""" Create the parse command to run the second time """
341+
second_parse_cmd = None
342+
if config.second_parse_file:
343+
second_parse_cmd = [
344+
resolve_vtr_source_file(
345+
config,
346+
config.second_parse_file,
347+
str(PurePath("parse").joinpath("parse_config")),
348+
)
349+
]
350+
351+
return second_parse_cmd
352+
353+
338354
def create_cmd(abs_circuit_filepath, abs_arch_filepath, config, args, circuit, noc_traffic):
355+
""" Create the command to run the task """
339356
# Collect any extra script params from the config file
340357
cmd = [abs_circuit_filepath, abs_arch_filepath]
341358

@@ -394,7 +411,6 @@ def create_cmd(abs_circuit_filepath, abs_arch_filepath, config, args, circuit, n
394411
cmd += ["--fix_clusters", "{}".format(place_constr_file)]
395412

396413
parse_cmd = None
397-
second_parse_cmd = None
398414
qor_parse_command = None
399415
if config.parse_file:
400416
parse_cmd = [
@@ -405,14 +421,7 @@ def create_cmd(abs_circuit_filepath, abs_arch_filepath, config, args, circuit, n
405421
)
406422
]
407423

408-
if config.second_parse_file:
409-
second_parse_cmd = [
410-
resolve_vtr_source_file(
411-
config,
412-
config.second_parse_file,
413-
str(PurePath("parse").joinpath("parse_config")),
414-
)
415-
]
424+
second_parse_cmd = create_second_parse_cmd(config)
416425

417426
if config.qor_parse_file:
418427
qor_parse_command = [

0 commit comments

Comments
 (0)