Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emperoryp7/covid-simulator
Application simulating the spread of COVID-19
https://github.com/emperoryp7/covid-simulator
covid-19 numpy pandemic-simulator python3 simulator
Last synced: about 2 months ago
JSON representation
Application simulating the spread of COVID-19
- Host: GitHub
- URL: https://github.com/emperoryp7/covid-simulator
- Owner: EmperorYP7
- License: apache-2.0
- Created: 2021-04-18T09:26:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T17:16:24.000Z (over 3 years ago)
- Last Synced: 2023-03-04T02:48:31.023Z (almost 2 years ago)
- Topics: covid-19, numpy, pandemic-simulator, python3, simulator
- Language: Python
- Homepage: https://EmperorYP7.github.io/covid-simulator
- Size: 4.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COVID-19 Simulator
[![Python package](https://github.com/EmperorYP7/Covid-simulator/actions/workflows/python.yml/badge.svg)](https://github.com/EmperorYP7/Covid-simulator/actions/workflows/python.yml)
[![Software License](https://img.shields.io/github/license/EmperorYP7/tmake?style=for-the-badge&logo=appveyor)](/LICENSE.md)
[![Stars](https://img.shields.io/github/stars/EmperorYP7/Covid-simulator?style=for-the-badge&logo=appveyor)](https://github.com/EmperorYP7/Covid-simulator/stargazers)This project simulates the spread of COVID-19 in a controlled set of population with colorcodes.
![Screenshot](./resources/images/screenshot.png)
# How does it work?
## Variables involved
This simulation is based on the current statistics of the COVID-19 pandemic. Here are the variables used in this simulation:
- `r0` : Total number of cases generated through a single infected person
- `percent_mild` : The rate of mild cases
- `percent_severe` : The rate of severe cases,
- `fatality_rate` : The rate of deaths
- `serial_interval` : The average time between successive cases in a chain transmission
- `population` : The number of individuals in isolated population
## Cases
A person might have different duration in which the one might experience mild, severe symptoms.
If these symptoms persist for a longer duration of time, the patient is more likely to die of the virus.
However, if the symptoms are mild enough, one may recover from it.But, if one is exposed to the virus, he/she will be incubated
for a certain period after which these symptoms might be severe or mild.# How to run?
Follow these steps to see the simulation:
1. Clone this repo
1. Open a terminal/command prompt inside the repository and issue:
```bash
pip install numpy matplotlib
```3. Now, issue this command:
```bash
python simulation.py
```