def cal_metrics(self, ex=False):
    temp = np.array(self.RE_list)
    Mean_RE_channel = temp.mean(axis=0)
    self.logger.info(Mean_RE_channel)
    mre = Mean_RE_channel.mean()
    self.logger.info('ALL MRE {}'.format(mre))
    for radius in self.recall_radius:
        total = temp.size
        shot = (temp < radius).sum()
        self.logger.info('ALL SDR {}mm  {}'.format(radius, ((shot * 100) / total)))
    if ex:
        return (mre, None)
    return mre
def cal_metrics(self, ex=False):
    temp = np.array(self.RE_list)
    Mean_RE_channel = temp.mean(axis=0)
    self.logger.info(Mean_RE_channel)
    mre = Mean_RE_channel.mean()
    self.logger.info('ALL MRE {}'.format(mre))
    for radius in self.recall_radius:
        total = temp.size
        shot = (temp < radius).sum()
        self.logger.info('ALL SDR {}mm  {}'.format(radius, ((shot * 100) / total)))
    if ex:
        return (mre, None)
    return mre