-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Introduce AgentSet class #1916
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
Merged
Merged
Introduce AgentSet class #1916
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3bb8dde
Introduce AgentSet class
EwoutH 51d293b
move to WeakKeyDictionary, add inplace boolean, do_each can return re…
quaquel e397f9b
adds __getitem__, get_each, and code cleanup
quaquel 8d31c3b
removal of set
quaquel ef76309
AgentSet subclasses abc.MutableSet and supports indexing and slicing
quaquel 7f7ca58
unittests for AgentSet
quaquel ec36b9f
Update mesa/agent.py
quaquel 1531ec5
Update mesa/agent.py
quaquel d34eef9
make AgentSet pickle-able
quaquel 1e3b4d9
minor change to __setstate__ for pickleability
quaquel 5c279b4
fix for pickle test
quaquel c1e64f6
additional keyword arguments for sort, select, renaming of some other…
quaquel d26c483
mimic how Agents handles random
quaquel 2436e5b
fix for typo in docstring
quaquel 503e05a
Black formatting
EwoutH 3c42e50
Ruff fixes
EwoutH a513d74
Fix last ruff errors
EwoutH f298b7d
Model: Update docstring
EwoutH 5c770a6
AgentSet: Add docstring
EwoutH 175e2c4
tests: Add more tests for AgentSet
EwoutH daf8a23
AgentSet: Add agent_type argument to select() method
EwoutH a26e7c6
AgentSet: Rename reverse to ascending in sort
EwoutH 8d2a9d2
Add tests for selecting by type
EwoutH 7888007
Add experimental warning for AgentSet
EwoutH 22b99cd
requested fixes
quaquel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.