From b3e76b8a26d782f75a604db1cb4ee2a591e9b10b Mon Sep 17 00:00:00 2001 From: Jonathan Cooper Date: Fri, 18 Aug 2023 09:05:07 +0100 Subject: [PATCH 1/2] Reflect changed question name in live form --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ``` From 383cddf494855e11912e47ffccef1715e404f43f Mon Sep 17 00:00:00 2001 From: Jonathan Cooper Date: Fri, 18 Aug 2023 09:05:30 +0100 Subject: [PATCH 2/2] Print some more diagnostic info --- ranked_vote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)