pothiers / vvote Goto Github PK
View Code? Open in Web Editor NEWVote counting and data validation
Vote counting and data validation
Installing and Running VVOTE * Installing cd $HOME/sandbox git clone https://github.com/pothiers/vvote.git" cd vvote python3 -m venv $HOME/sandbox/vvote/venv source $HOME/sandbox/vvote/venv/bin/activate ./install.sh * Running export PATH=$HOME/sandbox/vvote/scripts:$PATH edata="/data/vvote/Elections/Primary2018/PCE/vv" lvrdb -s $edata/P-2018-CRV-?.csv count-totals.sh count-race.sh "U.S. SENATOR DEM" sqlite3 -header -column LVR.db "select precinct from cvr" | head count-precinct.sh 249
Just tried: genmap -v MockSOVC.xlsx FinalLVR.xlsx mockraces mockchoices
The program appears to run but output files are empty. Input files look OK to me.
To aid feature development and adequate testing, it would help to have a small test case that contains all the variety we need to handle. This would be small like the simple files, but full of variety like the day-N* files.
The SOVC “equivalent” should include a record for each precinct taken from the LVR as well as the totals. The checking of the LVR vs SOVC could check each of these figures, not just the totals, if it doesn’t take too long.
A couple of mods needed: A real SOVC file does not have the <OOD> number in it. Also, the undervote figures should be converted to a single undervote count: undervote = undervote-1 + 2undervote-2 + 3undervote-3 + … + N*undervote-N in a vote-for-N contest. Similarly, the overvote count in an SOVC is the number of overvote entries, not the number of overvoted ballots, so the overvote figure should be multiplied by N. These differences will have to taken into account when comparing LVR to SOVC.
@ryantwaz, The real SOVC has zero counts (e.g. tests/data/mock1-sovc.xlsx). But when all I have is the CVR, there is no mention of the choices unless there are votes for them. Is there another way of getting all choices for each race?
On output report, change “” to “Ballots Cast” (#ballots - ). Would like to see “Ballots Cast” as first entry in each contest list. Undervote and overvote counts at bottom of each list.
Number of undervotes: Tom would like to keep track of the number of undervote entries for each contest. In a vote-for-N contest there could be 0,…,N “undervote” entries in each record. So define undervote-m, m=1,…,N as the number of records with m “undervote” entries.
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.