Commit 9d3fdbce authored by Georgios Dagkakis's avatar Georgios Dagkakis

bug noted by Jerome in Exit fixed. Got to see if it is better to return 0,...

bug noted by Jerome in Exit fixed. Got to see if it is better to return 0, None, or nothing in cases where there are no exits and lifespan and takt_time have no meaning
parent b013e446
......@@ -212,8 +212,9 @@ class Exit(CoreObject):
json['id'] = str(self.id)
json['results'] = {}
json['results']['throughput']=self.numOfExits
json['results']['lifespan']=((self.totalLifespan)/self.numOfExits)/G.Base
json['results']['takt_time']=((self.totalTaktTime)/self.numOfExits)/G.Base
json['results']['lifespan']=self.Lifespan[0]
json['results']['takt_time']=self.TaktTime[0]
else: #if we had multiple replications we output confidence intervals to excel
#for some outputs the results may be the same for each run (eg model is stochastic but failures fixed
#so failurePortion will be exactly the same in each run). That will give 0 variability and errors.
......
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