Skip to content

Commit

Permalink
Fix overflow issue in circles to bboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
thamerkhamassi authored and zeddo123 committed Oct 11, 2024
1 parent b633766 commit 3067ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octopipes/process.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""General useful set of processes"""

def circles_to_bboxes(circles) -> list:
return [(int(x - r), int(y + r), int(x + r), int(y - r))
for x, y, r in circles]
return [(int(x) - int(r), int(y) - int(r), int(x) + int(r), int(y) + int(r))
for x, y, r in circles]

0 comments on commit 3067ddf

Please sign in to comment.