Skip to content

Commit 7d42814

Browse files
authored
Refactor file name assignment for CWL export
1 parent f3e73dd commit 7d42814

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/python_workflow_definition/cwl/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ def _write_function_cwl(workflow, directory_path: str = "."):
108108
},
109109
"outputs": {},
110110
}
111-
file_name = export_path / (function_nodes_dict[i].split(".")[-1] + "_" + str(i) + ".cwl")
111+
file_name = export_path / (
112+
function_nodes_dict[i].split(".")[-1] + "_" + str(i) + ".cwl"
113+
)
112114
if function_nodes_dict[i].split(".")[0] != "python_workflow_definition":
113115
template["inputs"]["workflowfile"]["default"]["location"] = (
114116
function_nodes_dict[i].split(".")[0] + ".py"

0 commit comments

Comments
 (0)