Commit Graph

121 Commits

Author SHA1 Message Date
6b5c188668
Adjust PRSA 1977 implementation
Count in votes to 3 decimal places
Round transfer values correctly
2021-01-04 18:10:07 +11:00
6f5cf70abb
Update documentation 2021-01-04 17:51:24 +11:00
fb33a96d37
Implement ERS97 2021-01-04 17:26:11 +11:00
27c0638f98
Remove references to "STV-C" for now. Minor UI tweaks 2021-01-04 02:45:24 +11:00
1f4c7f8efe
Tweak CLI interface
Default to "prompt" for ties
Allow hiding excluded candidates and sorting by votes in count report
2021-01-03 19:16:48 +11:00
61601f05cc
Make Wright method a variant of regular STV as an exclusion method 2021-01-03 19:04:14 +11:00
2bcc52d85f
Update documentation 2021-01-03 18:47:02 +11:00
8d7a1ea1f9
Optimisations for number handling
DRY number classes
Implement __iadd__, etc. for better performance
2021-01-03 18:39:32 +11:00
673b531475
Optimisation: Do not re-sort already sorted parcels in exclusion by_value 2021-01-03 17:20:13 +11:00
6d3e283d1d
Additional pretty-print tidying 2021-01-03 02:10:36 +11:00
891f82e148
Fix bug in JS implementation of exclusive Gregory
Remove dependency on Transcrypt's itertools.groupby as this does not appear to work
2021-01-03 02:05:49 +11:00
3b9a98fabd
Improve pretty printing
Print stage of count
Avoid printing too many decimal places in JS client
2021-01-03 02:05:15 +11:00
e219969711
Expose advanced rounding options in count software 2021-01-03 01:23:11 +11:00
a3d79e993a
Implement advanced rounding functionality in API 2021-01-03 00:29:41 +11:00
7b52f8f06d
Remove native integers mode in preparation for more advanced rounding options 2021-01-03 00:29:24 +11:00
1b74e41695
Add test cases for numbers 2021-01-02 23:35:21 +11:00
8a304aedcf
Fix/tweak numbers implementation
Round fixed point decimals in initialiser to match Python behaviour
Add pretty printing for Python
2021-01-02 23:35:17 +11:00
15dd93cf24
Use pytest-steps to show progress in long tests 2020-12-31 17:00:23 +11:00
73fec045d5
Add unit tests for various election methods and JS engine 2020-12-31 16:50:19 +11:00
0b567e66e3
Rename parcels_by_value to by_value and update documentation 2020-12-31 16:50:19 +11:00
3910dfbc2a
Update documentation 2020-12-31 02:14:12 +11:00
a40dea7a5e
Add test case based on Senate STV count 2020-12-31 01:52:04 +11:00
29c15645b4
Fix bug in STV implementation
Do not allow surplus transfers to interrupt a candidate exclusion
2020-12-31 01:51:13 +11:00
61506f0082
Implement exclusion of parcels by value + Senate STV 2020-12-30 02:33:09 +11:00
803941a53a
Raise Exception in Python when attempting to operate on incompatible types, as this will be invalid in JS 2020-12-30 02:32:36 +11:00
f0e8bac4b7
Add test case based on CSM15 ballot data 2020-12-29 22:55:21 +11:00
fb8d8981d7
Add test case based on PRSA ballot data 2020-12-29 22:19:15 +11:00
509768c071
Separate out parcel handling logic 2020-12-29 02:43:37 +11:00
044b9fb3d3
Update documentation 2020-12-28 01:20:14 +11:00
467612541f
Show error message on error in JS 2020-12-28 01:14:43 +11:00
ec75a61406
Fix error/bug with Wright STV in Python CLI 2020-12-28 01:14:19 +11:00
c9ff0a16fb
Fix error/bug when excluding candidates in exclusive Gregory 2020-12-27 23:30:54 +11:00
7ad142f19d
Implement prompting for ties 2020-12-27 23:28:16 +11:00
4e06dfe068
Minor tweaks
Show progressive transfers during exclusive Gregory exclusion
Don't perform bulk election in the middle of an exclusion
Limit decimals displayed if using fixed numbers with < 2 dps
2020-12-27 21:50:30 +11:00
f6596bd8e8
Implement exclusive Gregory and PRSA 1977 rules 2020-12-27 21:25:40 +11:00
8307ebf86c
Rename base WIG/UIG classes 2020-12-27 18:57:36 +11:00
81dbadb8ae
Fix error/bug in unweighted inclusive Gregory implementation 2020-12-27 18:55:29 +11:00
d1528ee987
Implement option to disable bulk election 2020-12-27 18:28:35 +11:00
ae6bb3e09f
Update documentation 2020-12-24 21:33:09 +11:00
100e4aef6f
Update documentation 2020-12-24 21:09:47 +11:00
cd3471f4c2
Files for deployment
Update documentation
Include own copy of BigRational, as including this from github.com seems to cause issues when hosted online
2020-12-24 20:23:55 +11:00
43d8b7f69c
Add README.md and prepare for web release 2020-12-24 18:52:29 +11:00
503fed26d1
Implement backwards tie breaking 2020-12-24 01:36:39 +11:00
06ab133615
Implement random breaking of ties 2020-12-24 01:09:47 +11:00
e3edc80f2b
Begin implementation of tie handling 2020-12-23 22:37:48 +11:00
8347a20675
Implement initial Python CLI version 2020-12-23 21:39:43 +11:00
5f4d6aa7ca
Refactor/clean up (un)weighted inclusive Gregory handling 2020-12-23 20:03:15 +11:00
f73e2eaa53
Require Python 3.7.x for Transcrypt 3.7.16 2020-12-23 19:57:21 +11:00
80e22aa63c
Formatting changes 2020-12-23 19:19:11 +11:00
fab58ab892
Fix rounding errors in unweighted inclusive Gregory mode 2020-10-19 01:40:27 +11:00