def limit_from_config(self, config):
    """
    a time limit to kill a result after such that it can be compared to config
    """
    results = self.driver.results_query(config=config)
    if results.count() == 0:
      return None
    if self.accuracy_target > min(map(_.accuracy, results)):
      m = self.low_accuracy_limit_multiplier
    else:
      m = 1.0
    return m * max(map(_.time, results))
dataset/ETHPy150Open jansel/opentuner/opentuner/search/objective.py/ThresholdAccuracyMinimizeTime.limit_from_config/original