Skip to content
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

Generate automatically unique_id #110

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

luca-patrignani
Copy link

This PR aims to address issue #105 by generating automatically the unique_id for each agent and not letting the user assign it.
The proposed solution is very similar to the mesa's one which is adding static iterators (one for each model) to keep track of used ids.

Need confirmation

  • When adding a new agent with a user-defined id the add method will throw a warning and ignore the id
  • In the unit tests every assertion about unique_ids' content has been removed or changed

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.

1 participant