Skip to content

Commit c0ac8fb

Browse files
committed
Replaced test-name chars to create valid URL
1 parent 6ee64f2 commit c0ac8fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vtr_flow/scripts/python_libs/vtr/log_parse.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def load_script_param(script_param):
301301
script_param = script_param.replace(" ", "_")
302302
else:
303303
script_param = "common"
304+
for spec_char in [":", "<", ">", "|", "*", "?"]:
305+
# replaced to create valid URL path
306+
script_param = script_param.replace(spec_char, "_")
304307
return script_param
305308

306309

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ def find_longest_task_description(configs):
310310
for arch, circuit in itertools.product(config.archs, config.circuits):
311311
if config.script_params_list_add:
312312
for param in config.script_params_list_add:
313-
for spec_char in [":", "<", ">", "|", "*", "?"]:
314-
# replaced to create valid URL path
315-
param = param.replace(spec_char, "_")
316313
arch_circuit_len = len(str(PurePath(arch) / circuit / "common_" / param))
317314
if arch_circuit_len > longest:
318315
longest = arch_circuit_len

0 commit comments

Comments
 (0)