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

remove unique_id and model.next_id #194

Merged
merged 9 commits into from
Sep 5, 2024

Conversation

quaquel
Copy link
Member

@quaquel quaquel commented Sep 5, 2024

With #2260 merged, all examples can be updated to no longer pass a unique id, nor use model.next_id.

This only fixes the examples, not the gis-examples or rl examples.

@quaquel quaquel requested a review from EwoutH September 5, 2024 06:44
Copy link
Member

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, it really shows how much can be cleaned up now!

examples/boltzmann_wealth_model_experimental/model.py Outdated Show resolved Hide resolved
examples/color_patches/color_patches/model.py Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this notebook, why is the scheduler added back?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not change anything there

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the diff says otherwise. Could it be you started on an outdated branch?

I reverted it, that example is one big mess by the way.

examples/virus_on_network/virus_on_network/model.py Outdated Show resolved Hide resolved
examples/wolf_sheep/wolf_sheep/model.py Outdated Show resolved Hide resolved
examples/sugarscape_g1mt/sugarscape_g1mt/model.py Outdated Show resolved Hide resolved
@EwoutH EwoutH merged commit 660102f into projectmesa:main Sep 5, 2024
2 of 3 checks passed
EwoutH added a commit to EwoutH/mesa-examples that referenced this pull request Sep 20, 2024
All examples can be updated to no longer pass a unique id, nor use model.next_id.

This only fixes the examples, not the gis-examples or rl examples.

Co-authored-by: Ewout ter Hoeven <[email protected]>
@quaquel quaquel deleted the remove_unique_id branch November 11, 2024 18:48
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