Giter VIP home page Giter VIP logo

vvote's Introduction

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

vvote's People

Contributors

pothiers avatar

Watchers

James Cloos avatar  avatar  avatar

vvote's Issues

Empty genmap outputs

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.

need small test case with lots of variety

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.

add precinct counts to generated SOVC

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.

SOVC changes

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.

choices with zero counts not in generated 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?

Countvote output format

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.

undervote counting

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.