From e2673c3cd194bbabca063f5165c1d45a8529ab0d Mon Sep 17 00:00:00 2001 From: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> Date: Sat, 15 Jun 2024 14:23:42 +0700 Subject: [PATCH] Fix syllable abbreviation for pentanomial (#224) --- OpenBench/stats.py | 2 +- OpenBench/templatetags/mytags.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenBench/stats.py b/OpenBench/stats.py index 1dc4916..20e6638 100644 --- a/OpenBench/stats.py +++ b/OpenBench/stats.py @@ -60,7 +60,7 @@ def PentanomialSPRT(results, elo0, elo1): nt0, nt1 = (x / nelo_divided_by_nt for x in (elo0, elo1)) t0, t1 = nt0 * math.sqrt(2), nt1 * math.sqrt(2) - # Number of game-pairs, and the PDF of Pntml(0-2) expressed as (0-1) + # Number of game-pairs, and the PDF of Ptnml(0-2) expressed as (0-1) N = sum(results) pdf = [(i / 4, results[i] / N) for i in range(0, 5)] diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index bd9ef1d..8e69745 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -61,7 +61,7 @@ def gitDiffLink(test): def shortStatBlock(test): tri_line = 'Games: %d W: %d L: %d D: %d' % test.as_nwld() - penta_line = 'Pntml(0-2): %d, %d, %d, %d, %d' % test.as_penta() + penta_line = 'Ptnml(0-2): %d, %d, %d, %d, %d' % test.as_penta() if test.test_mode == 'SPSA': statlines = [ @@ -394,4 +394,4 @@ def next(iterable, index): @register.filter def previous(iterable, index): try: return iterable[int(index) - 1] - except: return None \ No newline at end of file + except: return None