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
......@@ -170,13 +170,14 @@ def setWIP(entityList):
entity.schedule.append([object,now()]) #append the time to schedule so that it can be read in the result
entity.currentStation=object # update the current station of the entity
def countDailyThroughput(argumentDict={}):
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
obj.dailyThroughPutList.append(currentExited)
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