[EM] RCV in SF Mayoral election
robla at robla.net
Sun Jun 17 14:30:28 PDT 2018
I'm still sorting through this. Rather than give up on my parsing script,
I decided to use it to create a parsing tool for parsing the sfgov.org
published results, which I just published as a standalone script
Now to nerd out just a little bit: Brian Olson's output format that he uses
(one urlencoded line per ballot-contest) can be condensed into a vaguely
readable form if piped through "sort | uniq -c". Which I did, then
I'm planning on using that as a means of manually checking the results when
I ran Brian's tool to get the pairwise count from the election.
I've tested my tool to create input for Brian's
voteutil/python/countvotes.py script. The results were very close, but not
identical; I haven't yet figured out if it's a bug in my code, or a bug in
his code, or sunspots, or what.
p.s. Brian, I would love it if you had the time to give my script a whirl,
but no worries if you don't. I'll eventually get around to filing a
On Fri, Jun 15, 2018 at 11:08 PM, Rob Lanphier <robla at robla.net> wrote:
> On Mon, Jun 11, 2018 at 10:16 AM, Brian Olson <bql at bolson.org> wrote:
>> I wrote Python code to parse the 'ballot image' and 'master lookup' files.
>> I have this exporting to www-cgi formatting like
> Cool, you're obviously a lot further along than I am. I've got my own (as
> yet unpublished) script for parsing out the ballot image files, but I don't
> have my script doing any tallying yet.
> I downloaded your voteutil code, ran rcvToNameEq against SF's report14
> results, and then tried running that through countvotes.py, getting it to
> cough up a matrix. I don't want to say yet who my output shows as having
> won a particular pairwise contest after parsing report14 (124004 to
> 105292), but it's kinda interesting (and probably a sign I need to debug
> something rather than finding something truly interesting).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Election-Methods