diff --git a/README.md b/README.md index d2e54a9..498dd95 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/ranked_vote.py b/ranked_vote.py index 40df88b..459c4f3 100644 --- a/ranked_vote.py +++ b/ranked_vote.py @@ -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)