#!/bin/sh
# Rebuild everything from raw/ (fetch.py, fetch_catalog.py, fetch_background.py download raw/ first).
set -e
cd /work/aftershock-forecasts
PY=/opt/venv/bin/python
$PY parse.py
$PY outcomes.py
$PY analyze.py > results/calibration_tables.txt
$PY skill.py > results/skill.txt
$PY sensitivity.py > results/sensitivity.txt
$PY productivity.py > results/productivity.txt
$PY artifact_checks.py > results/artifact_checks.txt
$PY figdata.py > results/figdata.txt
$PY check_counting.py > results/check_counting.txt
$PY check_rj.py > results/check_rj.txt
/work/venv-plot/bin/python plot_figs.py
