Skip to content

Conversation

@rht
Copy link
Contributor

@rht rht commented Jan 29, 2024

Update another example to initialize the bank reserves Mesa model with super().__init__().

class MyModel(mesa.Model):
    def __init__(self):
        super().__init__()  # This is now required!

This is needed to correctly add Agents to the model and setup other Mesa model variables.

@rht rht merged commit 34e92d2 into mesa:main Jan 29, 2024
@rht rht deleted the br_super_init branch January 29, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants