Skip to content

Commit

Permalink
fixing style refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 29, 2025
1 parent c513291 commit 8b936f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/shapes/poly2edgedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(THIS_DIR, '..'))
import sumolib # noqa
import sumolib.geomhelper as gh #noqa
import sumolib.geomhelper as gh # noqa

PATCH_NONE = 'None'

Expand Down Expand Up @@ -181,8 +181,8 @@ def main(options):
gh.positionAtShapeOffset(eShape, offset2))
revAngle = gh.angleTo2D(gh.positionAtShapeOffset(eShape, offset2),
gh.positionAtShapeOffset(eShape, offset1))
if (degrees(fabs(polyAngle - angle)) < options.atol or
degrees(fabs(polyAngle - revAngle)) < options.atol):
if ((degrees(fabs(polyAngle - angle)) < options.atol or
degrees(fabs(polyAngle - revAngle)) < options.atol)):
cands.append(e)
edges = cands
if not edges:
Expand Down

0 comments on commit 8b936f8

Please sign in to comment.