An open API service indexing awesome lists of open source software.

https://github.com/marcpinet/epidemic-modeling

๐Ÿฆ  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.
https://github.com/marcpinet/epidemic-modeling

animation epidemic-model epidemic-simulations matplotlib-pyplot modeling pyqt5 python

Last synced: 23 days ago
JSON representation

๐Ÿฆ  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.

Awesome Lists containing this project

README

          

# Epidemic Modeling

๐Ÿงฌ 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](https://en.wikipedia.org/wiki/Compartmental_models_in_epidemiology) ๐Ÿงซ

## 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

https://user-images.githubusercontent.com/52708150/146844598-e74a4185-b21d-40bf-9046-5e6e4423ef77.mp4

### Three waves of the epidemic were simulated

https://user-images.githubusercontent.com/52708150/146844606-71d78f0f-11e3-47e2-8330-953a9d3600f4.mp4

### Masked dots example

https://user-images.githubusercontent.com/52708150/146844600-05ff0eda-c5c0-4466-9e31-b50abf161229.mp4

### Support ๐Ÿ‘จโ€๐Ÿ’ป

Any problems with running the script and any questions please create a new issue [here](https://github.com/marcpinet/epidemic-modeling/issues/new?assignees=&labels=&template=bug_report.md&title=).

You can also contribute to this project by requesting new features [here](https://github.com/marcpinet/epidemic-modeling/new?assignees=&labels=&template=feature_request.md&title=).

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](https://i.imgur.com/fOUfdM5.png)!

### Prerequisites

* Python 3.7.0+

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

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

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

```bash
pip install -r requirements.txt
```

## Running ๐Ÿƒ

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

## Authors

* **Marc Pinet** - *Initial work* - [marcpinet](https://github.com/marcpinet)

## License

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

## Acknowledgments

* Hat tip to anyone whose code was used.

## Contributions

Special thanks to [loicpantano](https://github.com/loicpantano) for some ideas and [marcusaasjensen](https://github.com/marcusaasjensen) for its participation in the project (he made a its own simulation in C# of an airport with graphs, see [marcus' simulation](https://github.com/marcusaasjensenunice/covid-simulation)).

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