Commit a6a09ab5 authored by Georgios Dagkakis's avatar Georgios Dagkakis

assertation added

parent 1f4e19c9
...@@ -100,9 +100,7 @@ class CapacityStation(Queue): ...@@ -100,9 +100,7 @@ class CapacityStation(Queue):
meanUtilization=0 meanUtilization=0
for entry in self.utilisationDict: for entry in self.utilisationDict:
meanUtilization+=entry['utilization']/float(len(self.utilisationDict)) meanUtilization+=entry['utilization']/float(len(self.utilisationDict))
if entry['utilization']>1.0: assert (entry['utilization'])<1.00001, 'utilization greater than 1'
print '*************'
print self.id, entry['period'],entry['utilization']
json['results']['meanUtilization']=meanUtilization json['results']['meanUtilization']=meanUtilization
json['results']['detailedWorkPlan']=self.detailedWorkPlan json['results']['detailedWorkPlan']=self.detailedWorkPlan
G.outputJSON['elementList'].append(json) G.outputJSON['elementList'].append(json)
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