File size: 913 Bytes
fc329a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | """Run the synthetic SimplexUQ benchmark suite."""
import argparse
import subprocess
from pathlib import Path
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"--pattern",
default="d[1-6]_*.yaml",
help="Glob pattern under configs/synthetic/ for benchmark configs",
)
parser.add_argument(
"--python",
default="python",
help="Python executable used to launch run_synthetic.py",
)
args = parser.parse_args()
config_dir = Path("configs/synthetic")
configs = sorted(config_dir.glob(args.pattern))
if not configs:
raise SystemExit(f"No configs matched {config_dir / args.pattern}")
for cfg in configs:
print(f"\n{'=' * 72}\nRunning {cfg}\n{'=' * 72}")
subprocess.run([args.python, "scripts/run_synthetic.py", "--config", str(cfg)], check=True)
if __name__ == "__main__":
main()
|