Scripts to monitor the evolution of COVID-19 propagation for each countries, based on data aggregated by the Johns Hopkins University (https://github.com/CSSEGISandData/COVID-19).
Scripts were developped with Python 3.6.8, matplotlib 2.2.2, pandas 0.25.3 and scipy 1.2.0.
To create a new virtual environment:
$ virtualenv venv
$ source venv/bin/activate
To install the dependencies:
$ pip install -r requirements.txt
The two main scripts are:
1/ plot_versus_time.py (see Fig. 1)
-> Plot the usual observables (confirmed cases, deaths, active cases) versus time. The observables can be show in the form of cumulated, daily value (gradient) or daily value variation (curvature)
-> Curves can be smoothed with the Savitzky-Golay filter
-> Exponential extrapolation is proposed based on data before (dashed line) and after (plain line) lockdown, if lockdown date is given.
2/ plot_phase_portrait.py (see Fig. 2)
-> plot the phase diagram of the usual observables.
-> X-axis is the gradient (=new case/day) and Y-axis is the curvature (=variation of new case/day). The course of the epidemic can be well visualized in this phase diagram.
This project is licensed under the BSD 3 License - see the LICENSE.md file for details