[EM] RCV in SF Mayoral election

Rob Lanphier 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
(sfballotparse.py):
https://gist.github.com/robla/7664d03372e6a80f1372869c09472b60

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
published here:
https://gist.github.com/robla/b9e8df41d94a62d4190760eac044b3bc

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.

Rob
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
bug/submitting-a-patch/whatever-is-appropriate

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.
>> https://github.com/brianolson/voteutil/blob/master/python/rcvToNameEq.py
>>
>> I have this exporting to www-cgi formatting like
>> Alice=1&Bob=2&Carol=3
>>
>
>
> 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).
>
> Rob
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.electorama.com/pipermail/election-methods-electorama.com/attachments/20180617/21ce1b58/attachment.html>


More information about the Election-Methods mailing list