mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Python code linting changes detected by ruff
This commit is contained in:
1 parent
ba9e3c7e26
commit
cdcc22cc42
1 file changed
+1
-3
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user