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