Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifying candidate vote checksums per county? #149

Open
nk9 opened this issue Feb 3, 2017 · 2 comments
Open

Verifying candidate vote checksums per county? #149

nk9 opened this issue Feb 3, 2017 · 2 comments

Comments

@nk9
Copy link
Contributor

nk9 commented Feb 3, 2017

I think you were proved right that this is the right step of the process to verify some basic things about the data with a script. We've found all sorts of issues which would have been much harder to diagnose later on in the process.

One thing we still don't have, though, is a verification of the final vote tallies. I see that each election has a csv file, e.g. 20100518__or__primary.csv. I guess this data comes from the state? Is there already a script adding up all the county results by candidate and verifying it against this? And if not, should there be? :-)

One thing this might require, though, is normalization of candidate names.

@nk9 nk9 changed the title Verifying candidate checksums per county? Verifying candidate vote checksums per county? Feb 3, 2017
@nk9
Copy link
Contributor Author

nk9 commented Feb 3, 2017

This code from the CA data project looks like it will do what I'm asking. It also does a few of the other checks (like verifying that every line in the file has the same county), but misses many of them. @charles-difazio

@charles-difazio
Copy link

Hey, glad that looks useful!

Feel free to drop it in here for your purposes. I'd also suggest setting up Travis CI so that any data changes and updates will get validated automatically.

In the medium-term, we should probably pull the validation code into its own library. I've been meaning to generalize it, but haven't yet gotten around to it (trying to get CA 2016 to pass all the tests, first).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants