Skip to content
Snippets Groups Projects
Commit 98c578fa authored by Kappes Marques Rodrigo's avatar Kappes Marques Rodrigo
Browse files

Cleaned more the overall code

parent f77e72f7
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -15,14 +15,10 @@ start_time = time.time() ...@@ -15,14 +15,10 @@ start_time = time.time()
def main(N,tmax,pmutation, proportion): def main(N,tmax,pmutation, proportion):
#Setting up initial variables
L=[]
lineList = [line.rstrip('\n') for line in open("plasmid_8k.fasta")]
brin = ''.join(lineList[1:])
#Creation of the initial population #Creation of the initial population
People=Population(N) People=Population(N)
L=[]
#Evaluating the initial population for the histogram #Evaluating the initial population for the histogram
S1=[] S1=[]
......
...@@ -4,7 +4,10 @@ from RotTable import RotTable ...@@ -4,7 +4,10 @@ from RotTable import RotTable
from croisement import croisement_un_point, croisement_deux_points from croisement import croisement_un_point, croisement_deux_points
import copy import copy
class Population: class Population:
'''A class of the ensemble of individuals and the methods associated with them,such as reproduction and different types of selections'''
#Class initialization #Class initialization
def __init__(self,n): def __init__(self,n):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment