From 663f2e9b7dccd4904b2c66675486b4e77aaf449f Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 20 Jun 2025 19:01:05 +0200 Subject: make pytest happy again (#3802) --- lib/utils/clamp_path.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/utils') diff --git a/lib/utils/clamp_path.py b/lib/utils/clamp_path.py index 6b3a56e5..4c2ce7c5 100644 --- a/lib/utils/clamp_path.py +++ b/lib/utils/clamp_path.py @@ -78,8 +78,8 @@ def clamp_fully_external_path(path, polygon): start = ShapelyPoint(path[0]) end = ShapelyPoint(path[-1]) - start_on_outline = nearest_points(start, polygon.exterior)[1].buffer(0.01, resolution=1) - end_on_outline = nearest_points(end, polygon.exterior)[1].buffer(0.01, resolution=1) + start_on_outline = nearest_points(start, polygon.exterior)[1].buffer(0.01, quad_segs=1) + end_on_outline = nearest_points(end, polygon.exterior)[1].buffer(0.01, quad_segs=1) border_pieces = ensure_multi_line_string(polygon.exterior.difference(MultiPolygon((start_on_outline, end_on_outline)))).geoms border_pieces = fix_starting_point(border_pieces) @@ -139,8 +139,8 @@ def clamp_path_to_polygon(path, polygon): # First, find the two points. Buffer them just a bit to # ensure intersection with the border. - exit_point = last_point_inside.buffer(0.01, resolution=1) - entry_point = ShapelyPoint(segment.coords[0]).buffer(0.01, resolution=1) + exit_point = last_point_inside.buffer(0.01, quad_segs=1) + entry_point = ShapelyPoint(segment.coords[0]).buffer(0.01, quad_segs=1) if not exit_point.intersects(entry_point): # Now break the border into pieces using those points. -- cgit v1.2.3