Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 75d94c4

Browse files
brandenkmurraybosd
authored andcommitted
Update core.py
1 parent 0fd63f4 commit 75d94c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

camelot/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def update_coords(self, x, y0, edge_tol=50):
6161
"""Updates the text edge's x and bottom y coordinates and sets
6262
the is_valid attribute.
6363
"""
64-
if math.isclose(self.y0, y0, atol=edge_tol):
64+
if math.isclose(self.y0, y0, abs_tol=edge_tol):
6565
self.x = (self.intersections * self.x + x) / float(self.intersections + 1)
6666
self.y0 = y0
6767
self.intersections += 1
@@ -97,7 +97,7 @@ def find(self, x_coord, align):
9797
the specified x coordinate and alignment.
9898
"""
9999
for i, te in enumerate(self._textedges[align]):
100-
if math.isclose(te.x, x_coord, atol=0.5):
100+
if math.isclose(te.x, x_coord, abs_tol=0.5):
101101
return i
102102
return None
103103

0 commit comments

Comments
 (0)