commit f96f480d169801c2ae1b0236e06cede10a3cec55
parent 8da68d84975038fa6202062a3b9816063ce1e2e2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 5 Jun 2026 22:09:25 +0300
style: move binary operator to end of line to fix W503
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/profile_interpreter/profile_interpreter.py b/profile_interpreter/profile_interpreter.py
@@ -80,8 +80,8 @@ def _point_attributes(field_names, feature_id, distance, elevation):
def _project_xy(xy, src_crs, dst_crs):
"""Map x/y from src_crs to dst_crs; identity if either CRS is invalid or they are equal."""
- if (not src_crs.isValid() or not dst_crs.isValid()
- or src_crs == dst_crs):
+ if (not src_crs.isValid() or not dst_crs.isValid() or
+ src_crs == dst_crs):
return xy.x(), xy.y()
ct = QgsCoordinateTransform(src_crs, dst_crs, QgsProject.instance())
p = ct.transform(QgsPointXY(xy.x(), xy.y()))