From cdcc22cc42f1920197cd1c4fb2050212382434d3 Mon Sep 17 00:00:00 2001 From: kriben <471372+kriben@users.noreply.github.com> Date: Fri, 6 Mar 2026 07:41:03 +0000 Subject: [PATCH] Python code linting changes detected by ruff --- .../case_and_grid_operations/polygon_region_from_project.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py b/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py index 80dbf5128f..7a336aae90 100644 --- a/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py +++ b/GrpcInterface/Python/rips/PythonExamples/case_and_grid_operations/polygon_region_from_project.py @@ -27,9 +27,7 @@ def point_in_polygon_2d(px, py, polygon_xy): for i in range(n): xi, yi = polygon_xy[i][0], polygon_xy[i][1] xj, yj = polygon_xy[j][0], polygon_xy[j][1] - if ((yi > py) != (yj > py)) and ( - px < (xj - xi) * (py - yi) / (yj - yi) + xi - ): + if ((yi > py) != (yj > py)) and (px < (xj - xi) * (py - yi) / (yj - yi) + xi): inside = not inside j = i return inside