def __init__(self, autostop, param_str): AbstractCriterion.__init__(self) self.seconds_count = 0 self.quantile = float(param_str.split(',')[0]) self.rt_limit = expand_to_milliseconds(param_str.split(',')[1]) self.seconds_limit = expand_to_seconds(param_str.split(',')[2]) self.autostop = autostop
def __init__(self, autostop, param_str): AbstractCriterion.__init__(self) self.seconds_count = 0 params = param_str.split(',') self.rt_limit = expand_to_milliseconds(params[0]) self.seconds_limit = expand_to_seconds(params[1]) self.autostop = autostop self.tag = params[2].strip() if len(params) == 3 else None