def terminate(perf): p_decision, p_correct = tasktools.correct_2AFC(perf) return p_decision >= 0.99 and p_correct >= 0.97
def terminate(perf): p_decision, p_correct = tasktools.correct_2AFC(perf) return p_decision >= 0.99 and p_correct >= 0.8