From 0c7484ad06159e5d0f488ebd98c61740b33d12d5 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sun, 7 Nov 2021 11:52:25 +0100 Subject: [PATCH] =?utf8?q?Ajout=20d'un=20avertissement=20que=20l'algo=20du?= =?utf8?q?=20rang=20majoritaire=20utilis=C3=A9=20ici=20est=20totalement=20?= =?utf8?q?incorrect?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- jugements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jugements.py b/jugements.py index ded1c91..80750bd 100644 --- a/jugements.py +++ b/jugements.py @@ -262,6 +262,8 @@ def MakeResults(*args): debug("base:"+str(base)) digits = list(map(lambda v: v, value[1:lenBallots+1])) rank = inBase(base, digits) + # FIXME: this algorithm is completely wrong, + # see https://hackage.haskell.org/package/hjugement-2.0.2.20190414/docs/Majority-Rank.html rankMax = base ** lenBallots - 1 debug("digits:"+str(digits)) debug("rank:"+str(rank)) -- 2.44.1