From d6436a941f17259b811b42e6711cad34943045bd Mon Sep 17 00:00:00 2001 From: Thibaud Date: Tue, 18 Dec 2018 10:57:11 +0100 Subject: [PATCH] Rollback phases names in parse_phase --- sumo_project/emissions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sumo_project/emissions.py b/sumo_project/emissions.py index 4ef581e..5c11a41 100644 --- a/sumo_project/emissions.py +++ b/sumo_project/emissions.py @@ -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 = ''