Inspiration
Challenge ID: 0224
Problem: How can we encourage everyone to follow social distancing rules despite the lack of immediate positive feedback.
What it does
We simulate a completely artificial environment to show how different factors affect the development of a disease. Factors taken into account are differing social relations, social structures (i.e. households, districts, cities), age, health service and sometimes chance (e.g. sometimes people are lucky/unlucky).
How we built it
We created the simulation in Rust and meant to write an engaging visualization using Electron and D3.js. Since the latter has not yet worked out as intended, you may use a Python script to visualize the data.
To do this in the repository, run
$ src/pansim/run.sh
(Make sure to give executable permissions to the run.sh file.)
An equivalent script does currently not exist for Windows, but I am sure that's may be easily done as the script is not very complicated.
Challenges we ran into
The visualization did not work out. We could not get D3.js to run properly for the longest time.
At first we wanted to implement the simulation in Python using numpy, but the lackluster performance had us switch to Rust.
Accomplishments that we're proud of
The amount of features in the simulation are actually quite impressive, even though there is still quite a bit to do.
It seems to be working quite efficiently, too.
What we learned
How to get D3.js working with Electron.
Jokes aside, the project has taught us a lot on how to use Rust and how to potentially model a pandemic.
What's next for 0012_Social Distancing_Pansim
We'll see. Have a look at https://github.com/miltfra/wirvsvirus. There are still some things listed as planned.
Log in or sign up for Devpost to join the conversation.