code: def compute_treshold_interval(self):
          
  
          intervals = [m.interval for m in self.modules if hasattr(m, "interval")]
          if len(intervals) > 0:
              self.treshold_interval = round(sum(intervals) / len(intervals))
docs: Current method is to compute average from all intervals.