Skip to content

Commit ebce8cd

Browse files
committed
adding flowcept and IO for swift/t
1 parent 9b2273c commit ebce8cd

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

wfcommons/wfbench/translator/swift_t.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ def _add_tasks(self, category: str) -> None:
206206
in_str = ""
207207
self.script += f"int dep_{self.cmd_counter} = {cats};\n"
208208
args += f", dep_{self.cmd_counter}"
209-
if self.workflow.workflow_id:
210-
args += f", \"{self.workflow.workflow_id}\""
209+
args += f", \"{self.workflow.workflow_id}\"" if self.workflow.workflow_id else ", \"\""
211210
self.script += f"string {category}_in = \"{self.output_folder.absolute()}/data/{in_str}\";\n"
212211

213212
if num_tasks > 1:

wfcommons/wfbench/translator/templates/swift_t_templates/workflow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cpu_work = int(%i)
3030
cpu_threads = int(10 * %f)
3131
output_data = {"%s": int(%i)}
3232
dep = %i
33-
workflow_id = "%s"
33+
workflow_id = "%s"
3434
3535
logging.info("Running with Flowcept.")
3636
from flowcept import Flowcept, FlowceptTask

0 commit comments

Comments
 (0)