Skip to content

k-donn/ec-apportionment-pyqt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electoral College Apportionment PyQt

A PyQt representation of CGP Grey's Electoral College spreadsheet. This animates the number of representatives, people to representative ratio, and priority number calculations.

See Running for instructions on how to get started

Usage

usage: python3.8 run.py [-h]

Show an animation of the Huntington–Hill apportionment method

optional arguments:
  -h, --help  show this help message and exit

Example

Coming soon!

Running

python3.8 ./run.py

Meta

From this video.

Update/Change the state population data by putting your own data into data/state-populations.csv.

The CSV file should have a header.

TODO

  • Use QTimer instead of FuncAnimation

About

Based on CGP Grey's Electoral College spreadsheet

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages