forked from heavywatal/practice-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df52d20
commit 33328c8
Showing
1 changed file
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""main script | ||
""" | ||
print('Hello, world!') | ||
import random | ||
from individual import Individual | ||
from population import Population | ||
|
||
|
||
def get_heterogeneity(Population): | ||
for x in Population._inds: | ||
if Population[0] != Population[x]: | ||
return True | ||
break | ||
else: | ||
return False | ||
|
||
|
||
def simulate_fixwf(Population): | ||
if complete_fixation(Population): | ||
|
||
|
||
|
||
p1 = Population(5) | ||
p1.print_ids | ||
simulate_fixation(p1) |