Access max_steps from init function #1075
-
Hi there Our init function starts some parallel processes that would like access to the current simulation config. Most importantly, we were hoping to access the configured maximum number of steps from within the init function. Is this possible? Something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not currently possible, but that's a good idea, and relates to #1066 I'll add a method to expose the simulation configuration via the host API soon (I can probably implement it tomorrow but it's unlikely to be merged until 14th June) . As a temporary workaround, you can store the max steps in a global variable which should be accessible from the host function's scope. |
Beta Was this translation helpful? Give feedback.
It's not currently possible, but that's a good idea, and relates to #1066
I'll add a method to expose the simulation configuration via the host API soon (I can probably implement it tomorrow but it's unlikely to be merged until 14th June) .
As a temporary workaround, you can store the max steps in a global variable which should be accessible from the host function's scope.