Quickstart
Install With Poetry
git clone https://github.com/TACC/PandemicExerciseSimulator.git
cd PandemicExerciseSimulator
poetry install --no-root
Check that the command-line interface works:
poetry run python3 src/simulator.py --help
Run A Small Example
The state input files contain data paths beginning with ../data/, so run them
from the repository’s data/ directory. Delaware has only three counties and
is a much faster introductory example than Texas.
cd data
poetry run python3 ../src/simulator.py \
-l INFO \
-d 10 \
-i Delaware/INPUT_SEIHRD-STOCH_Delaware_R0-2.2_BASELINE.json
The command components are:
Argument |
Long form |
Meaning |
|---|---|---|
|
Use the Poetry environment configured by the repository. |
|
|
Start the simulator command-line program. |
|
|
|
Show normal progress messages. Use |
|
|
Simulate at most 10 days. The default is 365. A run can stop earlier if exposed and infectious compartments fall below the termination threshold. |
|
|
Load the named simulation input JSON. This argument is required. |
Use INFO for ordinary runs. DEBUG produces substantially more output and
is most useful while investigating configuration or model behavior.
Install With Docker
docker build -t pes:latest .
docker run --rm pes:latest python3 src/simulator.py --help
latest is the local image tag for the most recently built code and does not
need to change for each software release.
Run Tests
poetry run pytest
Start From A Template
Input templates live in:
data/INPUT_FILE_TEMPLATES/
Copy the template closest to your scenario, update the data paths and model
parameters, then pass that JSON file to src/simulator.py.