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

update so that off-shift portion is also outputted in multiple runs. Also bug...

update so that off-shift portion is also outputted in multiple runs. Also bug in ShiftScheduler fixed
parent 28d73a4c
......@@ -885,7 +885,16 @@ class Machine(CoreObject):
else:
json['results']['waiting_ratio']['min']=self.Waiting[0]
json['results']['waiting_ratio']['avg']=self.Waiting[0]
json['results']['waiting_ratio']['max']=self.Waiting[0]
json['results']['waiting_ratio']['max']=self.Waiting[0]
json['results']['off_shifts_ratio']={}
if self.checkIfArrayHasDifValues(self.OffShift):
json['results']['off_shifts_ratio']['min']=stat.bayes_mvs(self.OffShift, G.confidenceLevel)[0][1][0]
json['results']['off_shifts_ratio']['avg']=stat.bayes_mvs(self.OffShift, G.confidenceLevel)[0][0]
json['results']['off_shifts_ratio']['max']=stat.bayes_mvs(self.OffShift, G.confidenceLevel)[0][1][1]
else:
json['results']['off_shifts_ratio']['min']=self.OffShift[0]
json['results']['off_shifts_ratio']['avg']=self.OffShift[0]
json['results']['off_shifts_ratio']['max']=self.OffShift[0]
G.outputJSON['elementList'].append(json)
\ No newline at end of file
......@@ -50,7 +50,7 @@ class ShiftScheduler(ObjectInterruption):
# =======================================================================
def initialize(self):
ObjectInterruption.initialize(self)
self.remainingShiftPattern=self.shiftPattern
self.remainingShiftPattern=list(self.shiftPattern)
# =======================================================================
# The run method for the failure which has to served by a repairman
......
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