def compute_treshold_interval(self):
        """
        Current method is to compute average from all intervals.
        """

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