From 7b84668e6379a264d1a2cf201b22287270aca619 Mon Sep 17 00:00:00 2001 From: mohammed Date: Wed, 16 Jul 2025 14:30:13 +0300 Subject: [PATCH] keep the same variable name --- docling/utils/layout_postprocessor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docling/utils/layout_postprocessor.py b/docling/utils/layout_postprocessor.py index debc6ae7..ac5bd2bd 100644 --- a/docling/utils/layout_postprocessor.py +++ b/docling/utils/layout_postprocessor.py @@ -339,15 +339,15 @@ class LayoutPostprocessor: # Find only those regular clusters whose bbox intersects the special's bbox possible = [] - for c, left, top, right, bottom in regular_bbox_tuples: + for cluster, left, top, right, bottom in regular_bbox_tuples: if left < sr and right > sl and top < sb and bottom > st: - possible.append(c) + possible.append(cluster) # Now do the expensive computation only for these - for c in possible: - containment = c.bbox.intersection_over_self(special.bbox) + for cluster in possible: + containment = cluster.bbox.intersection_over_self(special.bbox) if containment > 0.8: - contained.append(c) + contained.append(cluster) if contained: contained = self._sort_clusters(contained, mode="id")