InstallationΒΆ
Download and unzip the zip file, or clone the git repository. Go into the
root directory of epidemo/
. You should see (at least) the following contents:
docs/
epidemo/
examples/
setup.py
README.md
Make sure you use Python 3, not the old Python 2. Now type:
pip install -e .
This should install the package. Now in e.g. iPython you can load the package:
import epidemo
That should work without any message. A first example model run could be e.g.:
import epidemo
model = epidemo.LookBackModel(83000000,1.33,'2020-08-16','2021-06-01')
model.reset_init_infected(10)
model.run()
The result is in model.Ninf_new
(the new infected each day), model.Ninf_cum
(the cumulative infected).
This is just a simple example. See next chapter for more detailed directions.