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

example: Add input sliders to Sugerscape viz #2487

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

EwoutH
Copy link
Member

@EwoutH EwoutH commented Nov 11, 2024

Add input sliders and a checkbox to the Sugerscape visualisation SolaraViz app.py.

image

Closes #2486.

Add input sliders and a checkbox to the Sugerscape visualisation SolaraViz app.py.
@EwoutH EwoutH added example Changes the examples or adds to them. visualisation labels Nov 11, 2024
Copy link
Contributor

@Corvince Corvince left a comment

Choose a reason for hiding this comment

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

I have no idea if the ranges make sense, but codewise it looks good and it seems to work.

Copy link

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 +4.2% [+2.7%, +5.5%] 🔵 +0.2% [+0.0%, +0.4%]
BoltzmannWealth large 🔵 +0.2% [-0.3%, +0.7%] 🔵 -0.3% [-2.0%, +1.2%]
Schelling small 🔵 -0.7% [-1.0%, -0.4%] 🔵 +0.4% [+0.2%, +0.7%]
Schelling large 🔵 -0.5% [-0.9%, -0.1%] 🔵 +0.5% [-0.1%, +1.3%]
WolfSheep small 🔵 -0.9% [-1.3%, -0.5%] 🔵 -0.1% [-0.4%, +0.1%]
WolfSheep large 🔵 -1.9% [-3.6%, +0.1%] 🟢 -5.7% [-8.0%, -3.4%]
BoidFlockers small 🔵 -0.3% [-0.8%, +0.2%] 🔵 -0.3% [-0.9%, +0.3%]
BoidFlockers large 🔵 +0.5% [-0.3%, +1.3%] 🔵 +0.6% [+0.0%, +1.3%]

@EwoutH
Copy link
Member Author

EwoutH commented Nov 11, 2024

@tpike3 could you maybe review the ranges?

@EwoutH
Copy link
Member Author

EwoutH commented Nov 11, 2024

Took some additional time to validate the Checkbox, since it's new. It works, but updates on reset (which is for now expected behavior I think), since at that moment the model is re-initialized.

image

@EwoutH EwoutH merged commit f44115b into projectmesa:main Nov 11, 2024
12 of 14 checks passed
EwoutH added a commit that referenced this pull request Nov 11, 2024
Add input sliders and a checkbox to the Sugerscape visualisation SolaraViz app.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Changes the examples or adds to them. visualisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples: Sugerscape_g1mt is missing input Model Params (Sliders etc.)
2 participants