Skip to content

Commit 2c4c867

Browse files
author
Alan Christie
committed
refactor: from-workflow-variable becomes from-workflow
1 parent f9d4aca commit 2c4c867

7 files changed

+14
-14
lines changed

tests/workflow-definitions/duplicate-step-input-output-variable-names.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ steps:
1616
value: 123
1717
variable-mapping:
1818
- variable: inputFile
19-
from-workflow-variable:
19+
from-workflow:
2020
variable: candidateMolecules
2121
- variable: inputFile
22-
from-workflow-variable:
22+
from-workflow:
2323
variable: candidateMolecules
2424
in:
2525
- inputFile

tests/workflow-definitions/replicate-using-undeclared-input.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
value: 123
1717
variable-mapping:
1818
- variable: inputFile
19-
from-workflow-variable:
19+
from-workflow:
2020
variable: candidateMolecules
2121
in:
2222
- outputFile

tests/workflow-definitions/simple-python-fanout.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
value: "1"
1818
variable-mapping:
1919
- variable: inputFile
20-
from-workflow-variable:
20+
from-workflow:
2121
variable: candidateMolecules
2222

2323
- name: parallel-step

tests/workflow-definitions/simple-python-molprops-with-options.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ steps:
6262
version: "1.0.0"
6363
variable-mapping:
6464
- variable: inputFile
65-
from-workflow-variable:
65+
from-workflow:
6666
variable: candidateMolecules
6767
- variable: name
68-
from-workflow-variable:
68+
from-workflow:
6969
variable: rdkitPropertyName
7070
- variable: value
71-
from-workflow-variable:
71+
from-workflow:
7272
variable: rdkitPropertyValue
7373
- variable: outputFile
74-
from-workflow-variable:
74+
from-workflow:
7575
variable: clusteredMolecules
7676

7777
- name: step2
@@ -89,7 +89,7 @@ steps:
8989
name: step1
9090
variable: outputFile
9191
- variable: outputFile
92-
from-workflow-variable:
92+
from-workflow:
9393
variable: outputFile
9494
out:
9595
- outputFile

tests/workflow-definitions/simple-python-molprops.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
value: 123
1717
variable-mapping:
1818
- variable: inputFile
19-
from-workflow-variable:
19+
from-workflow:
2020
variable: candidateMolecules
2121

2222
- name: step2
@@ -34,7 +34,7 @@ steps:
3434
name: step1
3535
variable: outputFile
3636
- variable: outputFile
37-
from-workflow-variable:
37+
from-workflow:
3838
variable: clusteredMolecules
3939
out:
4040
- outputFile

tests/workflow-definitions/simple-python-parallel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
value: "0"
1717
variable-mapping:
1818
- variable: inputFile
19-
from-workflow-variable:
19+
from-workflow:
2020
variable: candidateMolecules
2121

2222
- name: parallel-step-a

workflow/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def get_workflow_variable_names(definition: dict[str, Any]) -> set[str]:
7373
for step in steps:
7474
if v_map := step.get("variable-mapping"):
7575
for v in v_map:
76-
if "from-workflow-variable" in v:
77-
wf_variable_names.add(v["from-workflow-variable"]["variable"])
76+
if "from-workflow" in v:
77+
wf_variable_names.add(v["from-workflow"]["variable"])
7878
return wf_variable_names
7979

8080

0 commit comments

Comments
 (0)