summaryrefslogtreecommitdiff
path: root/analyze.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-01 20:47:11 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-01 20:48:03 +0200
commit7a836f4a0a68188a1486b669c4cd437b5f592a5d (patch)
tree666d7867967e8d6fdc04aca6b18d8a95a077f33c /analyze.py
parentf99e10cff97afdc3e6ef07db22cf5f7fd442e067 (diff)
parent7c1180a7b58e7b8c17c8dab297058d0c001386c6 (diff)
Merge branch 'master' into pathfinding
Diffstat (limited to 'analyze.py')
-rw-r--r--analyze.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/analyze.py b/analyze.py
new file mode 100644
index 0000000..c9c3ac8
--- /dev/null
+++ b/analyze.py
@@ -0,0 +1,24 @@
+from stats import *
+import sys
+
+if len(sys.argv) >= 2:
+ files = sys.argv[1:]
+else:
+ files = ["stats.pickle"]
+
+
+s = Stats.load(files[0])
+for f in files[1:]:
+ s.merge(f)
+
+s.analyze_speed()
+print("\n" + "-"*40 + "\n")
+s.analyze_visible_window(False)
+for i in ["split cell", "ejected mass", "virus", "virus2", "virus3"]:
+ s.analyze_deviations(i)
+print("")
+for i in ["split cell", "ejected mass", "virus"]:
+ s.analyze_distances(i)
+
+s.analyze_virus_sizes()
+s.analyze_remerge()