#!/bin/sh
# Checks that the stars follow the selection rules, runs the search on every light curve as
# observed and with 50 injected pulses each (run_trials.py), then tunes the controls on the tuning
# stars and compares the two methods on the held-out and flare stars (analyze.py), and runs the
# exploratory analyses added after the registered results were seen (exploratory.py). Per-star
# trial records go to results/trials/; the declared results and tables to results/.
set -eu
python code/select_sample.py verify data
python code/run_trials.py data/sample.json results/trials
python code/analyze.py data/sample.json results/trials data/meta/gunther2020_table1.dat.gz results
python code/exploratory.py data/sample.json results/trials results
