(sim, func, todo)
| 5047 | |
| 5048 | |
| 5049 | def _eval_step_func(sim, func, todo): |
| 5050 | num_args = get_num_args(func) |
| 5051 | |
| 5052 | if num_args != 1 and num_args != 2: |
| 5053 | raise ValueError(f"Step function '{func.__name__}'' requires 1 or 2 arguments") |
| 5054 | elif num_args == 1: |
| 5055 | if todo == "step": |
| 5056 | func(sim) |
| 5057 | elif num_args == 2: |
| 5058 | func(sim, todo) |
| 5059 | |
| 5060 | |
| 5061 | def _when_true_funcs(cond, *step_funcs): |
no test coverage detected