mirror of
https://github.com/Ahp06/SUMO_Emissions.git
synced 2024-11-22 03:26:30 +00:00
Rollback phases names in parse_phase
This commit is contained in:
parent
ba3e3d160b
commit
d6436a941f
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user