I’m not entirely sure what you’re trying to do, but did you try using an anonymous function affect! = (integrator) -> integrator.p.model[models].signal_value = 1.0
? Defining dispatches of functions in a loop isn’t a great idea, while an anonymous function will act more naturally.
1 Like