Skip to content

Commit 161cc25

Browse files
MaoSong2022MaoSong2022
authored andcommitted
docs(order_annotation.py): remove unused logs
1 parent 800884e commit 161cc25

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

vrdu/order_annotation.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,13 @@ def generate_float_envs_order(self):
172172
category_to_indicdes[category].append(
173173
(_match.start(), _match.end(), str(uuid4()))
174174
)
175-
log.debug(
176-
f"find {len(category_to_indicdes[category])} {category} in {self.tex_file}"
177-
)
175+
178176
for category_name, indices in category_to_indicdes.items():
179177
# find labels for those float environments
180178
for block in self.annotations["annotations"]:
181179
if config.category2name[block.category] != category_name:
182180
continue
183181

184-
log.debug(f"processing {block.source_code}")
185182
start_index = latex_content.find(block.source_code)
186183
if start_index == -1:
187184
continue
@@ -191,20 +188,16 @@ def generate_float_envs_order(self):
191188
if start_index < index[0] or end_index > index[1]:
192189
continue
193190

194-
log.debug(f"wrapper: {latex_content[index[0] : index[1]]}")
195191
labels = re.findall(
196192
label_pattern, latex_content[index[0] : index[1]]
197193
)
198194
block.labels = labels
199195
block.labels.append(index[2])
200196

201-
log.debug(f"labels: {block.labels}")
202-
203197
# add references for captions to those float environments
204198
for block in self.annotations["annotations"]:
205199
if config.category2name[block.category] != "Caption":
206200
continue
207-
log.debug(f"processing {block.source_code}")
208201
start_index = latex_content.find(block.source_code)
209202
if start_index == -1:
210203
continue
@@ -213,11 +206,8 @@ def generate_float_envs_order(self):
213206
if start_index < index[0] or end_index > index[1]:
214207
continue
215208

216-
log.debug(f"wrapper: {latex_content[index[0] : index[1]]}")
217209
block.references = [index[2]]
218210

219-
log.debug(f"references: {block.references}")
220-
221211
def generate_sortable_envs_order(self):
222212
annotations = []
223213
sortable_categories = [

0 commit comments

Comments
 (0)