Commit eb40d8119ab16c7beb158dcce067824d0b8c032f
1 parent
477d730d
suppress unused variable warning, remove useless toString function
Showing
2 changed files
with
5 additions
and
6 deletions
Show diff stats
main.py
structure.py
... | ... | @@ -79,10 +79,10 @@ class MarkovModel(): |
79 | 79 | self.previousCell = 0 |
80 | 80 | for i in range (0, 11): |
81 | 81 | self.MarkovValues.append([]) |
82 | - for k in range (0, 10): | |
82 | + for _ in range (0, 10): | |
83 | 83 | self.MarkovValues[i].append(MarkovValue()) |
84 | 84 | self.MarkovValues[10][0].nb = 1 #initial position sigma increment |
85 | - | |
85 | + | |
86 | 86 | def moveToCellID(self, nextCell): |
87 | 87 | self.MarkovValues[nextCell][self.previousCell].nb += 1 |
88 | 88 | self.MarkovValues[10][nextCell].nb += 1 |
... | ... | @@ -114,7 +114,7 @@ class MarkovModel(): |
114 | 114 | def printPercentages(self): |
115 | 115 | print("\t? \t1 \t2 \t3\t4 \t5 \t6 \t7 \t8 \t9") |
116 | 116 | print("---------------------------------------------------------------------------------", end='') |
117 | - | |
117 | + | |
118 | 118 | for i in range (1, 10): |
119 | 119 | print("\r\n", end='') |
120 | 120 | |
... | ... | @@ -138,8 +138,7 @@ class MarkovModel(): |
138 | 138 | def path(self, locationIDs): |
139 | 139 | for loc in locationIDs: |
140 | 140 | self.moveToCellID(loc) |
141 | - def toString(self): | |
142 | - return "" | |
141 | + | |
143 | 142 | |
144 | 143 | def newCell(n1, n2, n3, n4, l1, l2): |
145 | 144 | return Cell(RSSVector(n1,n2,n3,n4), Location(l1,l2)) | ... | ... |