1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-11-21 19:16:30 +00:00

Rollback phases names in parse_phase

This commit is contained in:
Thibaud Gasser 2018-12-18 10:57:11 +01:00 committed by GitHub
parent ba3e3d160b
commit d6436a941f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,9 @@ def get_all_lanes() -> List[Lane]:
def parse_phase(phase_repr):
duration = search('duration: {:f}', phase_repr)
min_duration = search('min_duration: {:f}', phase_repr)
max_duration = search('max_duration: {:f}', phase_repr)
phase_def = search('phase_def: {}\n', phase_repr)
min_duration = search('minDuration: {:f}', phase_repr)
max_duration = search('maxDuration: {:f}', phase_repr)
phase_def = search('phaseDef: {}\n', phase_repr)
if phase_def is None:
phase_def = ''