diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7e99e367f8443d86e5e8825b9fda39dfbb39630d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc \ No newline at end of file diff --git a/__pycache__/Initialisation.cpython-37.pyc b/__pycache__/Initialisation.cpython-37.pyc deleted file mode 100644 index e986e03a10e3574402c013796cf8296d4a58eb32..0000000000000000000000000000000000000000 Binary files a/__pycache__/Initialisation.cpython-37.pyc and /dev/null differ diff --git a/__pycache__/RotTable.cpython-36.pyc b/__pycache__/RotTable.cpython-36.pyc deleted file mode 100644 index dbb2e4134f6503a6df95598a7c5505e659fc5c85..0000000000000000000000000000000000000000 Binary files a/__pycache__/RotTable.cpython-36.pyc and /dev/null differ diff --git a/__pycache__/Traj3D.cpython-36.pyc b/__pycache__/Traj3D.cpython-36.pyc deleted file mode 100644 index ecd80201694553fe02c71577fca8c84a37602d91..0000000000000000000000000000000000000000 Binary files a/__pycache__/Traj3D.cpython-36.pyc and /dev/null differ diff --git a/__pycache__/Traj3D.cpython-37.pyc b/__pycache__/Traj3D.cpython-37.pyc index 865cc612f429be0814ee850289aa455b69755f50..1c96963aabd1b568f33a524d629ac0fbd51f9518 100644 Binary files a/__pycache__/Traj3D.cpython-37.pyc and b/__pycache__/Traj3D.cpython-37.pyc differ diff --git a/croisement.py b/croisement.py index 48a399f3e03e49d46867b53a1695e99657f13c67..2bdb485cc5acfb57439e45e856e88296edb25876 100644 --- a/croisement.py +++ b/croisement.py @@ -18,7 +18,7 @@ ROT_TABLE = {\ "TA": [36, 0.9, 0, 1.1, 2, 0],\ "TC": [36.9, 5.3, -120, 0.9, 6, 0],\ "TG": [34.5, 3.5, 64, 0.9, 34, 0],\ - "TT": [35.62, 7.2, -154, 0.06, 0.6, 0]\ + "TT": [35.62, 7.2, 154, 0.06, 0.6, 0]\ } diff --git a/population.py b/population.py index 1af8dc965318864929e1462d992a0bd7bc746fa5..c16d0101e1233c9ff230563b1ca492f6bf6656fa 100644 --- a/population.py +++ b/population.py @@ -55,7 +55,7 @@ class Population: y=self.indiv[t] vu.add(t) vu.add(m) - if x.score<=y.score: + if x.score>=y.score: newself.append(x) else: newself.append(y)