The following scripts were developed for Python 2.7. They have dependencies on NumPy, SciPy, PyGame and matplotlib. You can install these using your system's package manager. For example, to install them on Debian or Ubuntu
sudo apt-get install python-numpy python-scipy python-matplotlib python-pygame
Alternatively, these can be installed locally using Pip and Virtualenv.
virtualenv avassalotti . avassalotti/bin/activate pip install numpy pip install matplotlib pip install scipy # BLAS, LAPACK and GNU Fortran must be installed pip install pygame # SDL and smpeg must be installed
Once the dependencies are installed, use the scripts as follow:
python compare.py --population 10000 --infected 100 --radius 0.005 --nu 0.005 # run the given agents2.py and dynamics2.py commands python plots.py d.json a.json
The content of the project archive [download] is listed here below