Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/sumo.py @ 1131:3972d85e3b6c
work on loading data for sumo
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 20 Feb 2020 23:56:56 -0500 |
| parents | cc5cb04b04b0 |
| children |
comparison
equal
deleted
inserted
replaced
| 1130:18e2c8cb9b09 | 1131:3972d85e3b6c |
|---|---|
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 '''Libraries for the SUMO traffic simulation software | 2 '''Libraries for the SUMO traffic simulation software |
| 3 http://sumo.dlr.de | 3 http://sumo.dlr.de |
| 4 ''' | 4 ''' |
| 5 import pandas as pd | |
| 5 | 6 |
| 6 #import csv | 7 |
| 7 | 8 |
| 8 def loadTazEdges(inFilename): | 9 def loadTazEdges(inFilename): |
| 9 '''Converts list of OSM edges per OSM edge and groups per TAZ | 10 '''Converts list of OSM edges per OSM edge and groups per TAZ |
| 10 format is csv with first two columns the OSM id and TAZ id, then the list of SUMO edge id | 11 format is csv with first two columns the OSM id and TAZ id, then the list of SUMO edge id |
| 11 | 12 |
