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

examples: Fix boid_flockers viz #2492

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

EwoutH
Copy link
Member

@EwoutH EwoutH commented Nov 11, 2024

Boids didn't have neighbours anymore (I broke it in #2473, sorry!), so the visualisation crashes. This commit fixes that.

image

Boids didn't have neighbours anymore, so the visualisation crashes. This commit fixes that.
@EwoutH EwoutH added the example Changes the examples or adds to them. label Nov 11, 2024
Copy link

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 -0.3% [-1.5%, +0.9%] 🔵 +0.4% [+0.2%, +0.6%]
BoltzmannWealth large 🔵 +0.6% [+0.0%, +1.3%] 🔵 +1.6% [+0.7%, +2.5%]
Schelling small 🔵 +0.9% [+0.6%, +1.1%] 🔵 +0.1% [-0.1%, +0.3%]
Schelling large 🔵 +1.1% [+0.6%, +1.6%] 🔵 +0.1% [-1.0%, +1.1%]
WolfSheep small 🔵 +1.3% [+1.0%, +1.7%] 🔵 +0.2% [+0.1%, +0.4%]
WolfSheep large 🔵 +1.6% [+1.2%, +2.1%] 🔵 -0.1% [-1.2%, +1.0%]
BoidFlockers small 🔵 -0.2% [-0.7%, +0.2%] 🔵 -1.0% [-1.9%, -0.2%]
BoidFlockers large 🔵 +0.8% [-0.1%, +1.7%] 🔵 -0.2% [-0.6%, +0.3%]

@EwoutH EwoutH merged commit c53223e into projectmesa:main Nov 11, 2024
12 of 13 checks passed
EwoutH added a commit that referenced this pull request Nov 11, 2024
Boids didn't have neighbours anymore, so the visualisation crashes. This commit fixes that.
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants