Analyses for school reopening. The folder first_analysis includes the folders and analyses that were used for the initial paper submission:
https://www.medrxiv.org/content/10.1101/2020.09.08.20190942v1
The remaining folders are in active use and development, especially testing_in_schools.
Python >=3.6 (64-bit). (Note: Python 2 is not supported, and only Python >=3.8 has been tested.)
We also recommend, but do not require, using Python virtual environments.
Create a virtual environment, if desired:
conda create -n covaschool python=3.8
conda activate covaschool
Install Covasim:
pip install covasim --upgrade
Install SynthPops in a folder of your choice:
git clone https://github.com/InstituteforDiseaseModeling/synthpops
cd synthpops
python setup.py develop
Install CovasimSchools:
git clone https://github.com/amath-idm/covid-schools
cd covid-schools
python setup.py develop
Run the main test script:
cd tests
python test_schools.py
If it worked, it should bring up a plot.
To run the main analysis scripts, first generate the synthetic populations:
cd testing_in_schools
python create_sp_pop.py
Then run either run_scenarios.py or sensitivity_scenarios.py. NB, these are intended to be run on HPCs and will likely not work (or take more than a day to complete) on a PC.
The font "Roboto Condensed" is used for generating the figures. To use with Python:
On Linux/Mac:
- Copy the font files you want (e.g. in the
assetsfolder) to$HOME/.fontsor/usr/share/fonts/truetype/ - Run
sudo fc-cache -f -v - Confirm they're installed:
fc-list
On Windows:
- Open the
assetsfolder in Windows Explorer and do what you need to do.
Then on all systems:
- Rebuild matplotlib font cache:
from matplotlib import font_manager as fm; fm._rebuild()-- this needs to be done for every user and/or virtual environment - Confirm they're available:
from matplotlib import font_manager as fm; fm.findSystemFonts()