Commit Graph

103 Commits

Author SHA1 Message Date
RunasSudo ad7efe3133
Add tests for tie breakers 2021-01-12 23:54:56 +11:00
RunasSudo 5812b252d8
Correct some bugs and add additional test cases
Fix describing election with only --ties prompt
Return JS number from SHARandom
2021-01-12 03:51:57 +11:00
RunasSudo fccb36ffbd
Add test coverage reporting 2021-01-12 03:15:58 +11:00
RunasSudo 7f30871296
Display number of candidates/seats in JS report. 2021-01-11 03:01:51 +11:00
RunasSudo b6c9eb73ad
Force printing of background colours in results table 2021-01-11 00:38:20 +11:00
RunasSudo 22ebecc86d
Hide print pane in interactive page print view 2021-01-10 23:39:51 +11:00
RunasSudo 165e98fb87
Add printable reports 2021-01-10 18:42:47 +11:00
RunasSudo c78a30d5b2
Report transfer values in detailed comments 2021-01-10 02:05:02 +11:00
RunasSudo 235c17b33a
Add detailed commentary to JS report sheet 2021-01-09 23:58:25 +11:00
RunasSudo c3c2fed444
Correct bug/logic error in ERS97
Do not double-count surpluses of elected candidates towards total active vote
2021-01-09 04:55:27 +11:00
RunasSudo ede1da73ad
Add detailed comments per stage 2021-01-09 04:55:27 +11:00
RunasSudo bd5910e7f6
Refactor Gregory method classes into pyRCV2.method.gregory package 2021-01-08 19:21:33 +11:00
RunasSudo 39d0adbd0d
Implement Meek STV 2021-01-08 19:16:56 +11:00
RunasSudo 81b70984c9
Minor tweaks
Remove unused reference to Wright STV in "Method" dropdown
Update documentation
2021-01-08 03:16:27 +11:00
RunasSudo 736a20c224
Reduce size of decimal places 2021-01-07 04:08:37 +11:00
RunasSudo 04f1b9c177
Fix bug in ERS97 implementation
Do not attempt to elect candidates already elected
2021-01-07 03:59:49 +11:00
RunasSudo 14b1dfb787
Allow displaying results to >2 dps in JS client 2021-01-07 03:45:12 +11:00
RunasSudo 1316c82c35
JS UI improvements
Improve display on very narrow displays
Add section subheadings
2021-01-06 02:34:24 +11:00
RunasSudo eb19b9dc8b
Improve JS client CSS on smaller displays 2021-01-06 01:38:23 +11:00
RunasSudo 4dd5ec41f9
Ditto 2021-01-05 21:07:40 +11:00
RunasSudo a0913c2d33
Ditto 2021-01-05 20:28:31 +11:00
RunasSudo 784b21eac7
Update client CSS for Chrome 2021-01-05 19:55:54 +11:00
RunasSudo 36a4e2a9d1
UI improvements for JS client 2021-01-05 19:47:07 +11:00
RunasSudo 7ee56f97f8
Display order of election in count report 2021-01-05 03:50:39 +11:00
RunasSudo 7afd8d7bfd
Minor UI improvements 2021-01-05 01:59:24 +11:00
RunasSudo 71447d49b5
Display vote required for election 2021-01-05 01:44:29 +11:00
RunasSudo ee1a375b46
Fix typo/bug when loading ERS97 preset 2021-01-05 01:32:01 +11:00
RunasSudo 60008d1e84
Add forwards tie breaking 2021-01-05 01:27:30 +11:00
RunasSudo a0709e4506
Add test case for ERS97 2021-01-04 20:46:38 +11:00
RunasSudo 64d23751a5
Fix bugs in ERS97 implementation
Re-calculate votes required for election after electing a candidate
Round votes required for election up in accordance with vote rounding
2021-01-04 20:46:18 +11:00
RunasSudo a9050e4124
Update documentation 2021-01-04 19:35:09 +11:00
RunasSudo 0b3651d450
Display error message in JS version when known STVException 2021-01-04 19:34:55 +11:00
RunasSudo 6b5c188668
Adjust PRSA 1977 implementation
Count in votes to 3 decimal places
Round transfer values correctly
2021-01-04 18:10:07 +11:00
RunasSudo 6f5cf70abb
Update documentation 2021-01-04 17:51:24 +11:00
RunasSudo fb33a96d37
Implement ERS97 2021-01-04 17:26:11 +11:00
RunasSudo 27c0638f98
Remove references to "STV-C" for now. Minor UI tweaks 2021-01-04 02:45:24 +11:00
RunasSudo 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
RunasSudo 61601f05cc
Make Wright method a variant of regular STV as an exclusion method 2021-01-03 19:04:14 +11:00
RunasSudo 2bcc52d85f
Update documentation 2021-01-03 18:47:02 +11:00
RunasSudo 8d7a1ea1f9
Optimisations for number handling
DRY number classes
Implement __iadd__, etc. for better performance
2021-01-03 18:39:32 +11:00
RunasSudo 673b531475
Optimisation: Do not re-sort already sorted parcels in exclusion by_value 2021-01-03 17:20:13 +11:00
RunasSudo 6d3e283d1d
Additional pretty-print tidying 2021-01-03 02:10:36 +11:00
RunasSudo 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
RunasSudo 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
RunasSudo e219969711
Expose advanced rounding options in count software 2021-01-03 01:23:11 +11:00
RunasSudo a3d79e993a
Implement advanced rounding functionality in API 2021-01-03 00:29:41 +11:00
RunasSudo 7b52f8f06d
Remove native integers mode in preparation for more advanced rounding options 2021-01-03 00:29:24 +11:00
RunasSudo 1b74e41695
Add test cases for numbers 2021-01-02 23:35:21 +11:00
RunasSudo 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
RunasSudo 15dd93cf24
Use pytest-steps to show progress in long tests 2020-12-31 17:00:23 +11:00