Senate preference explorer
This is a Windows application to explore Senate preferences. History:
- 2019-07-07, Version 1.1. Maps by division (i.e., not booth-level); calculations no longer automatically update on changing spinbox values; cross table cells should now be blank instead of zero when the cell value was excluded from the calculation.
- 2019-06-17, Version 1. First release; tables and cross tables.
The AEC publishes every formal Senate vote, and since the voting system reforms of 2016, these provide an incredibly rich dataset of Australian public opinion. I've written a Windows desktop program to explore these preferences. The downloads come in two parts:
- The explorer itself (32MB) – download the zip file and extract the folder to somewhere
on your computer. You can then run
senate_pref_explorer.exe, though at this stage it will do nothing useful.
- The program reads preferences from SQLite databases. There is a separate file for each state and election; you can download these (some or all) from here. Each of these is zipped up; you will have to extract the SQLite file, and place it anywhere on your computer.
Then load the preferences into the program by clicking on the 'Load preferences...' button and start clicking around. Some calculations for the larger states may take a while, but in ordinary use during testing, it's rarely taken longer than 30 seconds to generate a table, and usually it gets calculated in under 10 seconds.
If you find a bug, let me know via Twitter or email firstname.lastname@example.org.
Source code is available on Github. I wrote it with Qt, which presents itself as a cross-platform framework. Before the first release, I was writing it primarily in Ubuntu, and most of it ported over to Windows – I just needed to make some hack-y fixes to the interface (table cell dimensions) and be more careful with uninitialised variables. I've since been writing it exlcusively in Windows. If you're a Mac user, I think you have a good chance of being able to run it from source in Qt Creator; if anyone with the relevant know-how wants to compile it on Mac and host a download, I'll happily link to you.
Posted 2019-06-17. Updated 2019-07-07 (version 1.1).