From 9339e7aa4f70862ab06467ac493c9caa68a06214 Mon Sep 17 00:00:00 2001 From: Carlos Santos Garcia <carlos.santos@student-cs.fr> Date: Tue, 28 Jan 2020 14:09:58 +0100 Subject: [PATCH] =?UTF-8?q?evaluation=20corrig=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- individu.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/individu.py b/individu.py index 3231c88..9082f61 100644 --- a/individu.py +++ b/individu.py @@ -26,13 +26,13 @@ class Individu(): first_name = brin[0] last_name = brin[-1] - rot_computed = self.table.rot_table[last_name+first_name] - rot_traj = first_nucleotide - last_nucleotide + #rot_computed = self.table.rot_table[last_name+first_name] + #rot_traj = first_nucleotide - last_nucleotide # print(rot_traj) # print(rot_computed) - diff_angle = sum(abs(rot_computed - rot_traj)) + #diff_angle = sum(abs(rot_computed - rot_traj)) - self.score = 1/(distance + diff_angle) + self.score = 1/(distance) def mutation(self, proba = P1): -- GitLab