Skip to content

Commit e1538ed

Browse files
committed
Merge branch 'nextflow_translator_ro_crate_log_parsers_rewrite' into nextflow_translator_ro_crate_log_parsers_rewrite_BENCHMARKS
2 parents 8179bbe + c0be411 commit e1538ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wfcommons/wfbench/translator/nextflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _generate_flowcept_code(self) -> str:
186186
"}\n\n"
187187

188188
def _generate_task_process(self, task: Task) -> tuple[str, str]:
189-
function_name = task.task_id.replace(".", "_")
189+
function_name = task.task_id.replace(".", "_").replace("-", "_")
190190
code = f"process {function_name}()" + "{\n"
191191
code += "\tstoreDir \"${params.pwd_abs}/data\"\n"
192192

@@ -600,7 +600,7 @@ def _generate_module_function(self, module_idx: int, tasks: List[Task]) -> str:
600600

601601
# Call each task's process
602602
for task in tasks:
603-
function_name = task.task_id.replace(".", "_")
603+
function_name = task.task_id.replace(".", "_").replace("-", "_")
604604
code += self._generate_task_call(
605605
task=task,
606606
function_name=function_name,

0 commit comments

Comments
 (0)