openelections/openelections-data-wi

Name: openelections-data-wi

Owner: The OpenElections Project

Description: Pre-processed election results for Wisconsin elections

Created: 2015-11-12 15:15:30.0

Updated: 2017-03-28 22:36:53.0

Pushed: 2018-05-23 11:43:19.0

Homepage: null

Size: 119949

Language: Gherkin

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

openelections-data-wi

Pre-processed election results for Wisconsin elections

To re-parse data files:

on parser.py

To parse data files for specific elections, append one or more election ids:

on parser.py 426

A folder local_data_cache keeps a local copy of input data files. To update it:

ocal_data_cache
on fetch.py wi

To fetch input files for specific elections, append one or more election ids:

on fetch.py wi 1577 404

There are two types of tests:

  1. Tests to validate the CSV output using csv-test. To test:

    install
    _modules/csv-test/bin/csv-test tests/csv-test-config.yml '2014/*' tests/csv-test-validators.yml
    
  2. Tests to validate a sampling of results. These use behave and follow the format:

    ples: 20150929__wi__general_ward.csv
    ndidate                   | office   | ward                           | votes  | total |
    ndi Duchow                | Assembly | Village of Hartland Wards 1-13 | 117    | 140   |
    omas D. Hibbard (Write-In)| ASSEMBLY | Village of Wales Wards 1-4     | 10     | 106   |
    

To run those tests:

ests; behave

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.