Skip to content

Commit

Permalink
fighting heavywatal#15
Browse files Browse the repository at this point in the history
  • Loading branch information
hamazaki1990 committed May 4, 2017
1 parent 91f9496 commit 29e52b1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions hamazaki1990/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 29e52b1

Please sign in to comment.