peal.entrypoints.preflight

Check run configs before spending GPU time on them.

Usage:

python preflight.py <config.yaml> [<config.yaml> ...]
python preflight.py --script reproduction_scripts/reproduce_sce_results.sh
python preflight.py --script <script> --quiet     # only the failures
python preflight.py --no-existence configs/**/*.yaml   # CI, no $PEAL_RUNS

Exit status is 0 when everything checked can run, 1 otherwise, so a script can guard itself with python preflight.py –script “$0” || exit 1.

Functions

main

Check the configs named on the command line and/or in --script.

report

Print one config's verdict and say whether it failed.