38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
"""
|
||
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.")
|