Commit 82b7d3e0 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in merging steps of the gantt

parent c19ac9fb
......@@ -74,6 +74,10 @@ class BatchesOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
k=0
for record in schedule:
for nextRecord in schedule[k+1:]:
# break on the first element with different stationId
if not (nextRecord['stationId']==record['stationId']):
break
# if the stationId is the same break
if nextRecord['stationId']==record['stationId']\
and not record is schedule[-1]:
nextExitTime=nextRecord.get('exitTime',maxSimTime)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment