Cleaning repository

This commit is contained in:
Loïc Guégan 2024-06-30 14:49:37 +02:00
parent 42594cfab4
commit 8260634af4
80 changed files with 169459 additions and 541081 deletions

18
analysis/scheduler/analysis.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
wai=$(dirname $(readlink -f "$0")) # Current script directory
log=$1
out=$2
# Generate csv
cat $log | $wai/wakeup.awk > $wai/wakeup.csv
cat $log | $wai/data.awk > $wai/data.csv
cat $log | $wai/hint.awk > $wai/hint.csv
cat $log | $wai/hint_fw.awk > $wai/hint_fw.csv
cd $wai
Rscript ./wakeup.R &> /dev/null || { echo "Schduler data analysis failed"; exit 1; }
cd - > /dev/null
mv $wai/schedule.png $out