-
-
Notifications
You must be signed in to change notification settings - Fork 207
Fix for DeprecationWarning from AgentSet.__getitem__
#314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AgentSet.__getitem__
EwoutH
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks
Co-authored-by: Ewout ter Hoeven <15776622+EwoutH@users.noreply.github.com>
Co-authored-by: Ewout ter Hoeven <15776622+EwoutH@users.noreply.github.com>
Co-authored-by: Ewout ter Hoeven <15776622+EwoutH@users.noreply.github.com>
Co-authored-by: Ewout ter Hoeven <15776622+EwoutH@users.noreply.github.com>
|
Seems like it's still present? Or was this another warning? |
|
as indicated in the PR, this is an error in meta agent on mesa itself |
|
Right, thanks. Is that problem written up somewhere in the Mesa repo? Also a |
will do tomorrow
this fix was triggered by build/examples on the mesa side. But the CI here uses mesa from pip, so neither works right now. I guess this CI here should pip install mesa from github not from pip. |
Sequence behavior on AgentSet is being deprecated. So we call
self.agent.to_list()beforerandom.sampleinmodel.step. This also gives a substantial performance boost for this model.Same fix in warehouse model, which still fails because sequence behavior is used in mesa.experimental's meta_agent stuff. The code in the example is now correct.