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: python3.8 run.py [-h]
Show an animation of the Huntington–Hill apportionment method
optional arguments:
-h, --help show this help message and exit
Coming soon!
python3.8 ./run.py
- Press "Select Data" and choose the CSV file of your choice. (available:
data/state-populations.csv
)
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.
- Use QTimer instead of FuncAnimation