Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ conda activate socrse2023
pip install -r requirements.txt

# Run voting
python ranked_vote.py --token_col="Please insert your voting token here" ~/Downloads/SocRSE\ Trustee\ elections\ 2023.csv tokens.txt "Please rank the candidates (displayed in random order)" $num_places
python ranked_vote.py --token_col="Please insert your voting token here" ~/Downloads/SocRSE\ Trustee\ elections\ 2023.csv tokens.txt "Candidate ranking" 7
```
2 changes: 1 addition & 1 deletion ranked_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
valid_tokens = parse_tokens(args.tokens)
valid_votes, invalid_votes = filter_valid(votes, valid_tokens)

print(f"Running election for {args.seats} seats")
print(f"Running election for {args.seats} seats with {len(valid_votes)} valid votes ({len(invalid_votes)} invalid)")

result = run_stv(valid_votes, args.question, args.seats)
print(result)