added a bunch of helper scripts

This commit is contained in:
Niklas Halle 2025-08-05 10:54:44 +00:00
parent f72408cd88
commit a24aeeffe7
6 changed files with 347 additions and 0 deletions

23
run_batch_analysis_analysis.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Usage: ./run_batch_analysis_analysis.sh /path/to/target_dir
set -euo pipefail
if [[ $# -ne 1 ]]; then
echo "Usage: $0 /path/to/target_dir"
exit 1
fi
TARGET_DIR="$1"
if [[ ! -d "$TARGET_DIR" ]]; then
echo "Error: '$TARGET_DIR' is not a directory."
exit 1
fi
# Find all results.csv files directly under subdirectories
find "$TARGET_DIR" -mindepth 2 -maxdepth 2 -type f -name results.csv | while IFS= read -r csvfile; do
echo "Analyzing $csvfile"
./batch_analysis_analysis.py -i "$csvfile"
done