Files for deployment
Update documentation Include own copy of BigRational, as including this from github.com seems to cause issues when hosted online
This commit is contained in:
parent
43d8b7f69c
commit
cd3471f4c2
12
README.md
12
README.md
@ -22,3 +22,15 @@ pyRCV2 is highly customisable, including options for:
|
||||
* calculations using fixed-point arithmetic or exact rational numbers
|
||||
* different tie breaking rules (backwards, random, manual) with auditable deterministic random number generation
|
||||
* extensible API for other counting methods
|
||||
|
||||
## Online usage
|
||||
|
||||
After preparing the BLT file, head to <https://yingtongli.me/rcv/>. Select the BLT file, and click *Count*. pyRCV2 will count the election and display the results in a count sheet. See [here](https://yingtongli.me/blog/2020/12/24/pyrcv2.html) for more detailed instructions.
|
||||
|
||||
By clicking *Show advanced options*, you can customise the options used for the count. A detailed explanation of the various options can be found [here](https://yingtongli.me/git/pyRCV2/about/docs/options.md).
|
||||
|
||||
## Command line usage
|
||||
|
||||
pyRCV2 may also be invoked as a command line application. Run `python -m pyRCV2 --help` to view help.
|
||||
|
||||
For example, run `python -m pyRCV2 stv path/to/blt_file.blt --ties backwards --ties random --random-seed foobar`.
|
||||
|
@ -117,7 +117,7 @@
|
||||
|
||||
<table id="result"></table>
|
||||
|
||||
<script src="http://peterolson.github.com/BigRational.js/BigInt_BigRat.min.js"></script>
|
||||
<script src="vendor/BigInt_BigRat-a5f89e2.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/big.js@6.0.0/big.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sjcl@1.0.8/sjcl.min.js"></script>
|
||||
<script src="bundle.js"></script>
|
||||
|
1
html/vendor/BigInt_BigRat-a5f89e2.min.js
vendored
Normal file
1
html/vendor/BigInt_BigRat-a5f89e2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
importScripts('http://peterolson.github.com/BigRational.js/BigInt_BigRat.min.js', 'https://cdn.jsdelivr.net/npm/big.js@6.0.0/big.min.js', 'https://cdn.jsdelivr.net/npm/sjcl@1.0.8/sjcl.min.js', 'bundle.js');
|
||||
importScripts('vendor/BigInt_BigRat-a5f89e2.min.js', 'https://cdn.jsdelivr.net/npm/big.js@6.0.0/big.min.js', 'https://cdn.jsdelivr.net/npm/sjcl@1.0.8/sjcl.min.js', 'bundle.js');
|
||||
|
||||
onmessage = function(evt) {
|
||||
// Set settings
|
||||
|
Reference in New Issue
Block a user