Repository for Delineo Disease Modeling at the Johns Hopkins University.
Choose one of the below, either a local dev environment or a Conda environment.
- Ensure you have
python3.6
installed and set up. - Clone this repository.
- Initialize a virtual environment:
python3.8 -m venv ~/.envs/PandemicModel
. (Consider usingvirtualenvwrapper
for steps 3-4) - Activate the virtual environment:
source ~/.envs/PandemicModel/bin/activate
. - Install dependencies:
pip install -r requirements.txt
.
- In the Anaconda CMD.exe Prompt, create a new environment with
conda create -n myenv python=3.9.1
, wheremyenv
is the name of the environment. Python version 3.9.1 is what's up and running on the covidmod server so it's a good choice to use for your conda environment. - Activate the conda environment with
conda activate myenv
. - Clone this repository.
- Navigate into the PandemicModel folder and run
pip install -r requirements.txt
.
For both, the best way to verify everything is working by running python test_master.py
(run in root directory). If you get a bunch of numbers spit out to your terminal, then you're all set.
- Most likely, you will run into issues due to some dependency not being installed in your conda environment/virtual env. Check ClickUp and/or Slack for a full list of working dependencies.
- Please do not commit
venv
stuff. - If you
pip install
anything, remember topip freeze > requirements.txt
before committing any changes. - You cannot commit to the
master
branch, remember to commit all changes to a new branch and open a PR when you're ready to merge. - Do you need the Baltimore pkl file? https://drive.google.com/file/d/1DWG04IsdxIqKWCGYxdshpljrJ9D0ZWSv/view?usp=sharing
All important files for running are in the /simulation folder
src/simulation/data: contains comorbidity data
src/simulation/synthpops: DO NOT TOUCH unless you really know what you're doing
src/simulation: run test_master.py to run the simulation code
If you wish to work with the package code, follow these steps:
- In
setup.py
, change the version number to a greater number. - Run
deploy.sh
to deploy it to the test-PyPi website. - Wait a little bit (~30 seconds), and download the Delineo simulator from the website.
- Test with test. These files are to test the package.
A lot of the information on how to update the endpoints are found in the Fullstack guide, but in this repo, use the api folder to update the Flask app.
If you're coding in VSC, ensure that this setting is checked: File --> Preferences --> Settings --> Search Settings --> python.terminal.executeInFileDir