Gerrymandering and Computational Redistricting
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data/census
fig
helper_scripts
notebooks
pdist @ f87218e
results
tests
utils
weighted_k_means @ 6e31788
.gitignore
.gitmodules
.travis.yml
LICENSE
Makefile
README.md
requirements.txt
run.py
run_all.sh

README.md

Gerrymandering and Computational Redistricting

Results

If you are interested in looking at the maps check out the website: http://redistrict.science.

Redistrict a State

run.py is the main script to run. It downloads (if required) and processes relevant data for a state. Afterwards it runs the clustering on the state. And finally, it graphs the state as it is and the results of the clustering. For more information type:

python run.py --help

Examples

For a simple and easy state to run (not super taxing on RAM, etc.), you may try Rhode Island. Type the following and hit return:

python run.py RI

The run.py will now print information to do with the files it will create and the settings it is being run with.

Acknowledgements

Thanks to Logan T. Powell (@logantpowell) who works at the United States Census Bureau for all his patience, help, and support. Also thanks to David Ellis (@Ducksual) and Michael Sumner (@mdsumner) for showing me useful documentation for GIS — and thanks to Grant R. Vousden-Dishington (@usethespacebar) and Dmitrii V. Pasechnik (@dimpase) for pointing me to Cython.