From fb33a96d373b8a8fc0abb4f6e5aed8cbafbbad8d Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 1 Jan 2021 22:26:57 +1100 Subject: [PATCH] Implement ERS97 --- html/index.html | 59 ++++-- html/index.js | 59 +++++- pyRCV2/cli/stv.py | 22 +- pyRCV2/method/base_stv.py | 386 +++++++++++++++++++++++++--------- pyRCV2/model.py | 5 +- pyRCV2/numbers/__init__.py | 6 +- pyRCV2/numbers/base.py | 7 + pyRCV2/numbers/fixed_js.py | 9 +- pyRCV2/numbers/fixed_py.py | 11 +- pyRCV2/numbers/native_js.py | 12 +- pyRCV2/numbers/native_py.py | 6 +- pyRCV2/numbers/rational_js.py | 12 +- pyRCV2/numbers/rational_py.py | 6 +- tests/data/ers97.blt | 51 +++++ tests/test_aec.py | 3 +- tests/test_csm.py | 5 +- tests/test_prsa.py | 5 +- 17 files changed, 509 insertions(+), 155 deletions(-) create mode 100644 tests/data/ers97.blt diff --git a/html/index.html b/html/index.html index 0661e45..3ad277e 100644 --- a/html/index.html +++ b/html/index.html @@ -48,6 +48,7 @@ + @@ -58,6 +59,20 @@