Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

🦠 Python script that simulates a pandemic using moving dots with tweakable parameters and then generates a graph according to obtained values. Made as part of a school project.

License

Notifications You must be signed in to change notification settings

marcpinet/epidemic-modeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Epidemic Modeling

Maintenance made-with-python Windows Ask Me Anything !

🧬 Tweak transmission rate, recovery rate, death rate, number of people, and many more! 🧬

βš™οΈ Graphical User Interface with sliders and buttons. βš™οΈ

πŸ‘οΈ Visual and graphical interpretation of results from the simulation πŸ‘οΈ

πŸ”¬ Randomized simulation πŸ”¬

🧫 Inspired by SEIDR Model 🧫

Features

  • Every parameters of the simulation is editable through an interactive GUI πŸ–₯
  • Humans are travelling randomly but logically and are represented by dots πŸ‘¦
  • Humans can wear a mask and mask are 80% effective 🧒
  • Humans wearing a mask are represented by a "+" and do not easily infect as well as being harder to infect ⛑️
  • The simulation is almost fully randomized but keeps logic with given values 🎲
  • You can adjust the speed of the simulation with the slider πŸƒ
  • You can tweak some specific parameters of the simulation 🧰
  • At the end of the simulation, you can see the evolution of the population through time πŸ“Š
  • ... and many more! 🎯

Demo

One wave of the epidemic was simulated

3hm49ZR.mp4

Three waves of the epidemic were simulated

HHOF2NKU9f.mp4

Masked dots example

7yZKhat.mp4

Support πŸ‘¨β€πŸ’»

Any problems with running the script and any questions please create a new issue here.

You can also contribute to this project by requesting new features here.

I never ask for money for my open source projects. However, you can still tip me if you want. I am a Brave Verified Creator!

Prerequisites

  • Python 3.7.0+

Get a copy of the Project. Assuming you have git installed, open your Terminal and enter:

git clone 'https://github.com/marcpinet/epidemic-modeling.git'

To install all needed requirements run the following command in the project directory:

pip install -r requirements.txt

Running πŸƒ

After that you can proceed to start the program by running main.py.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used.

Contributions

Special thanks to loicpantano for some ideas and marcusaasjensen for its participation in the project (he made a its own simulation in C# of an airport with graphs, see marcus' simulation).

We were in the same team for this project and we worked together on different programs.

About

🦠 Python script that simulates a pandemic using moving dots with tweakable parameters and then generates a graph according to obtained values. Made as part of a school project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages