SPB Git

spb/wp42_uqo

Public
1.2 KB · 20 lines shellscript
1#!/bin/bash2# Reproduce every table and figure of WP42 from the validated datasets (no API call), then compile the manuscript.3set -e; cd "$(dirname "$0")/.."; export PYTHONPATH=src; PY=.venv/bin/python4$PY -m pytest -q tests5for t in pilot sensitivity recovery; do $PY -m wp42.cli export --tag $t; done6$PY analysis/econometrics/estimate.py --tag pilot --B 5000 --perm 20000 > logs/estimate_pilot.txt7$PY analysis/figures/fig01_architecture.py; $PY analysis/figures/fig02_benchmark_coverage.py8$PY analysis/figures/make_figures.py --tag pilot9$PY analysis/robustness/audit_pilot.py --tag pilot > logs/audit_pilot.txt10$PY analysis/robustness/sensitivity_models.py > logs/sensitivity.txt11$PY analysis/robustness/recovery_experiment.py > logs/recovery.txt12$PY analysis/robustness/economic_sensitivity.py > logs/economic.txt13$PY analysis/robustness/extra_descriptives.py > logs/extra.txt14$PY protocol/power_analysis/power_simulation.py --out analysis/tables/power_pilot.csv > /dev/null15$PY scripts/build_registry.py > /dev/null16$PY -m wp42.dashboard --out dashboard/index.html17cp analysis/figures/out/fig01_architecture.pdf manuscript/figures/18(cd manuscript && latexmk -pdf -interaction=nonstopmode main.tex > /dev/null && pdfinfo main.pdf | grep Pages)19echo "reproduce_all: done"20
Files · b09be49939acba948e8e8646783005f57cb01f41
Menu

Theme