From a4780a14572f6ded83bb5be0d97552cae7081e11 Mon Sep 17 00:00:00 2001
From: Nihama Sandra Ayumi <sandra.nihama@student-cs.fr>
Date: Mon, 27 Jan 2020 16:50:25 +0100
Subject: [PATCH] private instance changed

---
 RotTable.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/RotTable.py b/RotTable.py
index ede2d0b..b7ee23f 100644
--- a/RotTable.py
+++ b/RotTable.py
@@ -1,5 +1,6 @@
 import mathutils
 import math
+import numpy
 
 class RotTable:
     """Represents the rotation table"""
@@ -24,17 +25,16 @@ class RotTable:
         }
 
     def __init__(self):
-        self.__Rot_Table = {}
+        self.Rot_Table = {}
         for dinucleotide in RotTable.__ORIGINAL_ROT_TABLE:
-            self.__Rot_Table[dinucleotide] = RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][:3]
-            self.alea()
+            self.Rot_Table[dinucleotide] = RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][:3]
+        self.alea()
 
     
     def alea(self):
         for dinucleotide in RotTable.__ORIGINAL_ROT_TABLE:
             for i in range(2):
-                self.__Rot_Table[dinucleotide][i] += numpy.random.uniform(low = -RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3], high= RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3]) 
-
+                self.Rot_Table[dinucleotide][i] += numpy.random.uniform(low = -RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3], high= RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3]) 
 
 
     ###################
@@ -58,5 +58,5 @@ class RotTable:
 
     ###################
 
-    table1 = RotTable()
-    print(table1.__Rot_Table["AA"])
+table1 = RotTable()
+print(table1.Rot_Table["AA"])
-- 
GitLab