Skip to content

Multiple model runs /batchrunner runs not independent #1402

Discussion options

You must be logged in to vote

I solved my issue. The following way for now. In the future I'll think about how to avoid this issue from scratch.

I just added a reset method to my agent class:

    def reset(cls):
        CountryAgent.instances = []

and call it after every model iteration this way

      CountryAgent.reset(CountryAgent)

not sure though how to use batchrunner with this

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@yannickoswald
Comment options

Comment options

You must be logged in to vote
1 reply
@rht
Comment options

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