From ffb038b0635245d552e53cfacb8de5cd4d28253d Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 20 Sep 2023 10:55:38 -0400 Subject: [PATCH] Fix tests stopping early due to pair logic Needed a 2x here --- OpenBench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 1153769..d3c4108 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -423,7 +423,7 @@ def update_test(request, machine): x = param['value'] + float(request.POST['spsa_%s' % (name)]) param['value'] = max(param['min'], min(param['max'], x)) - test.finished = test.games / test.spsa['pairs_per'] > test.spsa['iterations'] + test.finished = test.games >= 2 * test.spsa['pairs_per'] * test.spsa['iterations'] test.save()