#!/usr/bin/env bash # Run a command, saving log + runtime to logs/runs/_/ and appending one row to logs/index.csv # (details: volve_dia/runlog.py). Examples: # scripts/runlog.sh scripts/02_parse_ddr.py # .py files are run with $PY # scripts/runlog.sh -n ocr_full --note "full DDR corpus" -- scripts/04_ocr.py --all # scripts/runlog.sh ls # most recent runs ROOT="$(cd "$(dirname "$0")/.." && pwd)" exec "${PY:-$ROOT/.venv/bin/python}" -m volve_dia.runlog "$@"