dendrobates-t-azureus/cache_utils/analyse_results.sh

20 lines
414 B
Bash
Raw Normal View History

2024-06-05 13:40:40 +02:00
#!/bin/bash
2024-06-05 15:57:29 +02:00
# Automatically run the different analysis scripts
2024-06-05 13:40:40 +02:00
exit_echo () {
echo $@;
exit 1;
}
2024-06-05 15:57:29 +02:00
NAME="${1%%.*}"
2024-06-05 13:40:40 +02:00
[[ $1 ]] || exit_echo "Usage: $0 <file>";
2024-06-05 15:57:29 +02:00
[[ -f $NAME.slices.csv ]] || exit_echo "$NAME.slices.csv not found"
[[ -f $NAME.cores.csv ]] || exit_echo "$NAME.cores.csv not found"
2024-06-05 13:40:40 +02:00
bash 2T/analyse.sh $1
. venv/bin/activate
python analyse_csv.py $NAME ${@:2}
python analyse_medians.py $NAME ${@:2}