From 8410d88686364f4c6a77cb9bf276b9d3f53bfa61 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 25 Oct 2014 13:50:04 +0200 Subject: Add stats object --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index da7c6ae..ee8c3a7 100644 --- a/main.py +++ b/main.py @@ -65,6 +65,7 @@ if OPEN_FILES: # BAN DURATION STATS with open(STATS_FILE, "w") as stats_file: + stats_file.write("Ban duration:\n") stats_file.write("Mean: %.2f days\n" % np.mean(ban_durations)) stats_file.write("Median: %.2f days\n" % np.median(ban_durations)) stats_file.write("Deviation: %.2f\n" % np.std(ban_durations)) -- cgit v1.2.3