We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c513291 commit 8b936f8Copy full SHA for 8b936f8
tools/shapes/poly2edgedata.py
@@ -44,7 +44,7 @@
44
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
45
sys.path.append(os.path.join(THIS_DIR, '..'))
46
import sumolib # noqa
47
-import sumolib.geomhelper as gh #noqa
+import sumolib.geomhelper as gh # noqa
48
49
PATCH_NONE = 'None'
50
@@ -181,8 +181,8 @@ def main(options):
181
gh.positionAtShapeOffset(eShape, offset2))
182
revAngle = gh.angleTo2D(gh.positionAtShapeOffset(eShape, offset2),
183
gh.positionAtShapeOffset(eShape, offset1))
184
- if (degrees(fabs(polyAngle - angle)) < options.atol or
185
- degrees(fabs(polyAngle - revAngle)) < options.atol):
+ if ((degrees(fabs(polyAngle - angle)) < options.atol or
+ degrees(fabs(polyAngle - revAngle)) < options.atol)):
186
cands.append(e)
187
edges = cands
188
if not edges:
0 commit comments