Commit d144bec8 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

countDailyThroughput updated to work correctly also in multiple exits

parent 69d0dfdf
......@@ -171,11 +171,12 @@ def setWIP(entityList):
entity.currentStation=object # update the current station of the entity
def countDailyThroughput(argumentDict={}):
currentExited=0
for obj in G.ObjList:
if obj.type is 'Exit':
totalExited=obj.totalNumberOfUnitsExited
previouslyExited=sum(obj.dailyThroughPutList)
currentExited=totalExited-previouslyExited
currentExited+=totalExited-previouslyExited
obj.dailyThroughPutList.append(currentExited)
......
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