From 9dcba9467aface38c1bb4f0d1a9a478c3e884f20 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 25 Aug 2015 22:52:33 +0200 Subject: store cellspeed with precision of 0.1 --- stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.py b/stats.py index fec5825..be8b547 100644 --- a/stats.py +++ b/stats.py @@ -102,7 +102,7 @@ class Stats: for i in range(1,n+1): cellspeed += (cell.poslog[-i] - cell.poslog[-i-1]).len() / n - cellspeed = int(cellspeed) + cellspeed = int(cellspeed*10)/10 self.data.size_vs_speed[cell.size][cellspeed] += 1 visible_width = max( map(lambda cell : cell.pos.x - cell.size, cells) ) - min( map(lambda cell : cell.pos.x + cell.size, cells) ) -- cgit v1.2.3