I used the latest development version and got this error:
Traceback (most recent call last):
File "detector/edgeDataFromFlow.py", line 124, in <module>
main(get_options())
File "detector/edgeDataFromFlow.py", line 86, in main
beginM = int(sumolib.miscutils.parseTime(options.begin, 60) / 60)
TypeError: parseTime() takes exactly 1 argument (2 given)
I opened the code and changed this:
beginM =
int(sumolib.miscutils.parseTime(options.begin, 60) / 60)
intervalM =
int(sumolib.miscutils.parseTime(options.interval, 60) / 60)
endM =
min(int(sumolib.miscutils.parseTime(options.end, 60) / 60), tMax)
to this:
beginM =
int(sumolib.miscutils.parseTime(options.begin) / 60)
intervalM =
int(sumolib.miscutils.parseTime(options.interval) / 60)
endM =
min(int(sumolib.miscutils.parseTime(options.end) / 60), tMax)
I changed the input interval and end times from minutes to seconds and it ran. But the flow rate did not match my measured data well enough. For example, some exit ramps had a flow of 0 for almost the entire simulation when they should have had cars constantly using them. I'm not too experienced with Python, so I do not know if that edit I made is the reason for the error.
I'm not sure where my error is, I wanted to make sure that the following steps made sense:
1) randomTrips.py to get the route file used in edgeDataFromFlow
2) edgeDataFromFlow.py to get the edgeData file
3) routeSampler.py for the route file used in the simulation
4) DFRouter for a validation file and detector file
5) SUMO