Skip to content

Commit 6433612

Browse files
committed
chore: Remove debug prints
1 parent 88d1778 commit 6433612

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/rmqrcode/segments.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _compute_costs(self, data):
8080
and the remainder bits length is `unfilled_length`.
8181
8282
Args:
83-
data (str): The data to encode
83+
data (str): The data to encode.
8484
8585
Returns:
8686
void
@@ -93,9 +93,6 @@ def _compute_costs(self, data):
9393
self.parents[0][mode][0] = (0, 0, 0)
9494

9595
for n in range(0, len(data)):
96-
# print("----")
97-
# print(f"{n} -> {n+1}")
98-
# print(self.dp[n])
9996
for mode in range(4):
10097
for unfilled_length in range(3):
10198
if self.dp[n][mode][unfilled_length] == self.INF:
@@ -135,14 +132,11 @@ def _compute_costs(self, data):
135132
self.dp[n + 1][new_mode][new_length] = self.dp[n][mode][unfilled_length] + cost
136133
self.parents[n + 1][new_mode][new_length] = (n, mode, unfilled_length)
137134

138-
# print("=======")
139-
# print(self.dp[len(data)])
140-
141135
def _find_best(self, data):
142136
"""Find the index which has the minimum costs.
143137
144138
Args:
145-
data (str): The data to encode
139+
data (str): The data to encode.
146140
147141
Returns:
148142
tuple: The best index as tuple (n, mode, unfilled_length).
@@ -164,7 +158,7 @@ def _reconstruct_path(self, best_index):
164158
best_index: The best index computed by self._find_best().
165159
166160
Returns:
167-
list: The path of minimum cost in the dynamic programming table
161+
list: The path of minimum cost in the dynamic programming table.
168162
169163
"""
170164
path = []

0 commit comments

Comments
 (0)