diff --git a/RotTable.py b/RotTable.py index 093082020f0c1b6b344c9818f438c90b37f82d32..c635aba4d265c64e12f70481022b86d37f681256 100644 --- a/RotTable.py +++ b/RotTable.py @@ -89,13 +89,13 @@ class RotTable: ################### def getTwist(self, dinucleotide): - return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][0] + return self.rot_table[dinucleotide][0] def getWedge(self, dinucleotide): - return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][1] + return self.rot_table[dinucleotide][1] def getDirection(self, dinucleotide): - return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][2] + return self.rot_table[dinucleotide][2] ################### diff --git a/__pycache__/croisement.cpython-37.pyc b/__pycache__/croisement.cpython-37.pyc index 1c3ec7b081655a26338694b19c7d0710ced76b8b..11ad47cc7baf3d1ad9232ef520a1896624a379fb 100644 Binary files a/__pycache__/croisement.cpython-37.pyc and b/__pycache__/croisement.cpython-37.pyc differ diff --git a/algogenetique.py b/algogenetique.py index 1c0fb8750761a64c6bf11965651910ca5fd7790e..bf30d68126ef49c94b864a07c3fc8f6fb5911c25 100644 --- a/algogenetique.py +++ b/algogenetique.py @@ -15,10 +15,10 @@ def main(N,tmax,pmutation, proportion,brin="plasmid_8k.fasta"): brin = ''.join(lineList[1:])''' L=[] People=Population(N) - print(People.indiv[0].table.rot_table) - print(People.indiv[1].table.rot_table) - print(People.indiv[2].table.rot_table) - print(People.indiv[3].table.rot_table) + #print(People.indiv[0].table.rot_table) + #print(People.indiv[1].table.rot_table) + #print(People.indiv[2].table.rot_table) + #print(People.indiv[3].table.rot_table) for i in range(tmax): max=0 best=None