boredzo / adem-analyzer Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Rather than only assuming the HTML pages are in a directory with a constant name, there should be an option to specify a path to that directory.
Using this option should foreclose other analyses like the ballot inventory (though there should probably be similar options for those analyses, and using multiple such options should deliver whatever analyses are requested).
There should also be an option to direct the CSV output to a file at a specified path.
analyze.py generates a CSV file where one column is the voter ID number scanned from each ballot (depending on #1). If the scan yielded a partial number (either because it was incompletely filled in or couldn't be scanned confidently), a human will need to look at that ballot to see whether any missing digits can be filled in.
There should be a tool with usage like:
./update-voter-ID.py path/to/ballot.pdf correct-voter-ID-number
that will update the appropriate row for that ballot in the CSV.
The same tool could have an option --list-needed
that lists off ballots with partial or missing voter ID numbers.
We probably shouldn't reinvent the wheel and write a whole new ballot-scanner; there may be existing open-source projects that can accurately detect the optical-scan marks, and we should use one of those if possible.
Some voters may have filled in bubbles completely, or made a mark in the bubble but not even partially “filled” the bubble in any sense.
We need two things:
If necessary, the voter ID number can be represented as a series of 10-candidate “races”, and the “winners” converted into the digits of the ballot's voter ID number in a post-processing step.
If you have a copy of all the Assembly District pages with the posted results (including vote counts!) on them, it should be possible to compare those vote counts to our own counts of votes found in valid ballots.
This will likely involve using Beautiful Soup to scrape the HTML in each file.
Brandon Harami (a candidate) tweeted today that the posted results have changed, with a couple of screenshots. I grabbed copies of the pages yesterday and just downloaded a fresh set, so it'd be possible for me to diff them.
#4 may include a tool to convert the HTML files to digestible CSVs; this issue covers a new tool to diff those CSVs and report:
There needs to be a tool, analyze.py, that generates a report summarizing the results (as best it can, depending on whether #1 is present) and an index of ballots by Assembly district, voter ID number, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.