From 3e939c3e674a47c42f723051e0a6b7495e4981f5 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 16 Aug 2023 09:21:23 -0400 Subject: [PATCH] Make sure currentllr is updated --- OpenBench/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenBench/utils.py b/OpenBench/utils.py index adb60a3..4cf4ce4 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -852,12 +852,12 @@ def update_test(request, machine): if test.test_mode == 'SPRT': # Compute a new LLR for the updated results - WLD = (test.wins, test.losses, test.draws) - test.sprt = SPRT(*WLD, test.elolower, test.eloupper) + WLD = (test.wins, test.losses, test.draws) + test.currentllr = SPRT(*WLD, test.elolower, test.eloupper) # Check for H0 or H1 being accepted - test.passed = test.sprt > test.upperllr - test.failed = test.sprt < test.lowerllr + test.passed = test.currentllr > test.upperllr + test.failed = test.currentllr < test.lowerllr test.finished = test.passed or test.failed elif test.test_mode == 'GAMES':