Skip to content
Snippets Groups Projects
Commit 0c9ec046 authored by Muller Sacha's avatar Muller Sacha
Browse files

encore des corrections d'erreurs

parent 85d56e7c
Branches
No related tags found
No related merge requests found
...@@ -25,22 +25,22 @@ class RotTable: ...@@ -25,22 +25,22 @@ class RotTable:
} }
__CORRESPONDANCE = {\ __CORRESPONDANCE = {\
"AA": "TT" "AA": "TT",\
"AC": "TG" "AC": "TG",\
"AG": "TC" "AG": "TC",\
"AT": "TA" "AT": "TA",\
"CA": "GT" "CA": "GT",\
"CC": "GG" "CC": "GG",\
"CG": "GC" "CG": "GC",\
"CT": "GA" "CT": "GA",\
"GA": "CT" "GA": "CT",\
"GC": "CG" "GC": "CG",\
"GG": "CC" "GG": "CC",\
"GT": "CA" "GT": "CA",\
"TA": "AT" "TA": "AT",\
"TC": "AG" "TC": "AG",\
"TG": "AC" "TG": "AC",\
"TT": "AA" "TT": "AA",\
} }
# get the angles in each axis (x, y, z), considering the deviation # get the angles in each axis (x, y, z), considering the deviation
......
...@@ -49,6 +49,7 @@ class Individu(): ...@@ -49,6 +49,7 @@ class Individu():
#sur l'axe z il y a un moins #sur l'axe z il y a un moins
table_rotations[doublet2][coord] = - table_rotations[doublet][coord] table_rotations[doublet2][coord] = - table_rotations[doublet][coord]
# individu1 = Individu(RotTable()) # individu1 = Individu(RotTable())
# print(individu1.table.rot_table) # print(individu1.table.rot_table)
# individu1.mutation() # individu1.mutation()
......
...@@ -2,7 +2,7 @@ import random ...@@ -2,7 +2,7 @@ import random
from random import random, randint, randrange from random import random, randint, randrange
from individu import Individu from individu import Individu
from RotTable import RotTable from RotTable import RotTable
from croisement import * from croisement import croisement_un_point, croisement_deux_points
class Population: class Population:
def __init__(self,n): def __init__(self,n):
...@@ -149,14 +149,11 @@ def test(): ...@@ -149,14 +149,11 @@ def test():
for individu in popu.indiv : for individu in popu.indiv :
individu.evaluate("AAAGGATCTTCTTGAGATCCTTTTTTTCTGCGCGTAATCTGCTGCCAGTAAACGAAAAAACCGCCTGGGGAGGCGGTTTAGTCGAA") individu.evaluate("AAAGGATCTTCTTGAGATCCTTTTTTTCTGCGCGTAATCTGCTGCCAGTAAACGAAAAAACCGCCTGGGGAGGCGGTTTAGTCGAA")
afficher(popu) afficher(popu)
# popu.selection_par_rang() popu.reproduction(selection = popu.selection_duel)
# print("\n SELECTION PAR RANG \n")
# afficher(popu)
popu.reproduction(selection = popu.selection_proportionelle)
print("\n REPRODUCTION \n") print("\n REPRODUCTION \n")
afficher(popu) afficher(popu)
test() # test()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment