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 Feb 15, 2025
1 parent c90d549 commit 3a18c58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tools/net/netcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
- if either option --source or --destination is given, it checks reachability
- if option --right-of-way is set, it checks for problems with right of way rules
- if option --short-tls-edges is set, a selection file for short edges (< 15m) incoming to a traffic light is written (see #16014)
- if option --short-tls-edges is set, a selection file for short edges (< 15m)
incoming to a traffic light is written (see #16014)
- by default it tests whether the network is (weakly) connected.
"""
from __future__ import absolute_import
Expand Down Expand Up @@ -147,12 +148,12 @@ def checkRightOfWay(net, options):
print('\n'.join([lane.getID() for lane in lanes]))


SHORT_EDGE = 15
def checkShortTLSEdges(net, options):
SHORT_EDGE = 15
short = []
for edge in net.getEdges(False):
if edge.getLength() < SHORT_EDGE and edge.getToNode().getType() == "traffic_light":
short.append(edge);
short.append(edge)

if options.selection_output:
with open(options.selection_output, 'w') as f:
Expand Down
2 changes: 1 addition & 1 deletion tools/osmWebWizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def makeConfigFile(self):

if self.routenames:
opts += ["-r", ",".join(self.getRelative(self.routenames))]

# extra output if the scenario contains traffic
opts += ["--tripinfo-output", "tripinfos.xml"]
opts += ["--statistic-output", "stats.xml"]
Expand Down

0 comments on commit 3a18c58

Please sign in to comment.