From 29e52b106b3072e90f23dcdd89e970fd574c1b74 Mon Sep 17 00:00:00 2001 From: hamazaki1990 Date: Thu, 4 May 2017 15:14:23 +0900 Subject: [PATCH] fighting #15 --- hamazaki1990/main.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hamazaki1990/main.py b/hamazaki1990/main.py index 93affaf..efc26c3 100644 --- a/hamazaki1990/main.py +++ b/hamazaki1990/main.py @@ -77,15 +77,9 @@ def repeat_simmo(trials, n, mutantrate=0, s=0): return result -test = [0, 0, 1, 2, 3] -print(test.count(0)) -test2 = [test.count(x) for x in range(len(test))] -print(test2) -test3 = {x: test.count(x)/len(test) for x in range(len(test))} -print(test3) - p1 = Population(10, 0.1, 0.5) p1.print_ids() +print(p1._inds.count(1)) print(get_heterogeneity(p1)) print(simulate_fixwf(p1))