From b1dd61c960f02f1b42b36fb964053d7d91a0b74d Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 20 Apr 2015 15:50:28 +0200 Subject: * generating data for charts --- charts.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 charts.sh (limited to 'charts.sh') diff --git a/charts.sh b/charts.sh new file mode 100755 index 0000000..12cc29d --- /dev/null +++ b/charts.sh @@ -0,0 +1,10 @@ +python charts.py +grep -v '^#' rate.log | grep -v '^$' | paste -s -d ',,,\n' | grep -f charts/championship-races.csv | sed 's/\(Average\|Podium\) rating\( change\)\?: *//g' | sed 's/\([0-9]\) \([0-9]\)/\1,\2/g' > charts/rate.csv +python podiums.py +rm charts/rate.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=7 -r | head -n 21 > charts/strongest_podiums.csv +cat charts/podium-averages.csv | head -n 1 > charts/weakest_podiums.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=7 | tail -n+2 | head -n 20 >> charts/weakest_podiums.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=8 -r | head -n 21 > charts/biggest_shuffles.csv +cat charts/podium-averages.csv | head -n 1 > charts/smallest_shuffles.csv +cat charts/podium-averages.csv | sort --field-separator=',' --key=8 | head -n 20 >> charts/smallest_shuffles.csv -- cgit v1.2.3