@@ -35,7 +35,7 @@ The generic pattern for workflows is:
35
35
36
36
- Solve the target scenario.
37
37
- Invoke reporting.
38
- 4. The resulting function is passed to the next workflow step.
38
+ 4. The resulting scenario is passed to the next workflow step.
39
39
40
40
- A workflow can consist of any number of scenarios and steps.
41
41
- The same precursor scenario can be used as the basis for multiple target scenarios.
@@ -56,7 +56,7 @@ These functions **must**:
56
56
57
57
1. A :class: `.Context ` instance.
58
58
2. The precursor scenario.
59
- 3. Optionally additional , keyword-only arguments.
59
+ 3. (Optional) Additional , keyword-only arguments.
60
60
61
61
- Return either:
62
62
@@ -75,14 +75,14 @@ and they **should**:
75
75
76
76
.. code-block :: python
77
77
78
- def changes_a (s : Scenario) -> None :
78
+ def changes_a (c : Context, s : Scenario) -> None :
79
79
""" Change a scenario by modifying structure data, but not data."""
80
80
with s.transact():
81
81
s.add_set(" technology" , " test_tech" )
82
82
83
83
# Here, invoke other code to further modify `s`
84
84
85
- def changes_b (s : Scenario, value = 100.0 ) -> None :
85
+ def changes_b (c : Context, s : Scenario, * , value = 100.0 ) -> None :
86
86
""" Change a scenario by modifying parameter data, but not structure.
87
87
88
88
This function takes an extra argument, `values`, so functools.partial()
0 commit comments