Skip to content

Commit 77aca38

Browse files
committed
Fix table node names in plotting
1 parent 6b6fe1f commit 77aca38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/find_dependencies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ def main():
396396
inputs = get_workflow_inputs(wf, dic_deps)
397397
outputs = get_workflow_outputs(wf, dic_deps)
398398
list_tables += inputs + outputs
399-
nodes_in = " ".join(inputs)
400-
nodes_out = " ".join(outputs)
399+
nodes_in = " ".join(inputs).replace("/", "_")
400+
nodes_out = " ".join(outputs).replace("/", "_")
401401
dot_deps += f" {{{nodes_in}}} -> {node_wf} -> {{{nodes_out}}}\n"
402402
list_tables = list(dict.fromkeys(list_tables)) # Remove duplicities
403403
for table in list_tables:
404-
dot_tables += f" {table}\n"
404+
dot_tables += f' {table.replace("/", "_")} [label="{table}"]\n'
405405
dot_tables += " }\n"
406406
dot_workflows += " }\n"
407407
dot += dot_workflows + dot_tables + dot_deps

0 commit comments

Comments
 (0)