Skip to content

Access max_steps from init function #1075

Answered by Robadob
jacksonsdean asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Robadob
Comment options

@mondus
Comment options

Answer selected by jacksonsdean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants