(cond, *step_funcs)
| 5059 | |
| 5060 | |
| 5061 | def _when_true_funcs(cond, *step_funcs): |
| 5062 | def _true(sim, todo): |
| 5063 | if todo == "finish" or cond(sim): |
| 5064 | for f in step_funcs: |
| 5065 | _eval_step_func(sim, f, todo) |
| 5066 | |
| 5067 | return _true |
| 5068 | |
| 5069 | |
| 5070 | # Public step functions |
no outgoing calls
no test coverage detected