GithubHelp home page GithubHelp logo

marcpinet / epidemic-modeling Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 237 KB

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

Home Page: https://marcpinet.me

License: MIT License

Python 100.00%
python modeling epidemic-model epidemic-simulations matplotlib-pyplot animation pyqt5

epidemic-modeling's Introduction

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.

epidemic-modeling's People

Contributors

marcpinet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.