Skip to content

Commit

Permalink
refactoring confusing variable name. refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 16, 2024
1 parent 710335c commit 390b79c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/edgesInDistricts.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ def parse_args(args=None):
if len(nets) > 1:
print("Warning! Multiple networks specified. Parsing the first one for edges and tazs, the others for " +
"taz only.")
reader = DistrictEdgeComputer(sumolib.net.readNet(nets[0]))
dec = DistrictEdgeComputer(sumolib.net.readNet(nets[0]))
tazFiles = nets + options.taz_files.split(",")
polyReader = sumolib.shapes.polygon.PolygonReader(True)
for tf in tazFiles:
parse(tf, polyReader)
if options.verbose:
print("Calculating")
reader.computeWithin(polyReader.getPolygons(), options)
dec.computeWithin(polyReader.getPolygons(), options)
if options.verbose:
print("Writing results")
reader.writeResults(options)
dec.writeResults(options)

0 comments on commit 390b79c

Please sign in to comment.