bachelor-thesis/evaluation/run_all.py

38 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
run_all.py Führt alle Auswertungsskripte in der richtigen Reihenfolge aus
============================================================================
Verwendung:
ANALYSIS_ROOT=/pfad/zu/daten ANALYSIS_OUTPUT=/pfad/zu/output python run_all.py
Reihenfolge:
01_ground_truth.py → erzeugt injection_windows.csv (wird von 02-04 benötigt)
02_throughput.py → REQ-NF7
03_resource_overhead.py → REQ-NF1, REQ-NF2
04_detection_behavior.py → Δt, Precision/Recall/F1, SEAD-Gewichte
"""
import subprocess
import sys
scripts = [
"01_ground_truth.py",
"02_throughput.py",
"03_resource_overhead.py",
"04_detection_behavior.py",
"05_visualize_runs.py",
"06_sead_details.py",
"07_pipeline_health.py",
]
for script in scripts:
print(f"\n{'#' * 60}")
print(f"# Starte: {script}")
print(f"{'#' * 60}")
result = subprocess.run([sys.executable, script], check=False)
if result.returncode != 0:
print(f"\nFEHLER in {script} (Exit-Code {result.returncode})")
print("Skript-Ausführung abgebrochen.")
sys.exit(result.returncode)
print("\n\nAlle Skripte erfolgreich abgeschlossen.")
print("Ausgaben befinden sich im OUTPUT-Verzeichnis.")