/
2019.cfg
201 lines (154 loc) · 11.3 KB
/
2019.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# N-Party-Preferred configuration
# You"ll need to modify most of these values; hopefully it"s straightforward.
# February 2020 format.
# Most of this file pre-defines "Scenarios" for convenience.
# The AEC"s 2019 ballot format eschews ballot numbers in favour of
# ticketcode:name, one per column. Use these to define (pseudo)candidates.
[DEFAULT]
# This section is special; it has all of the top-level information.
# You can refer to values in this section, even from other sections, like so: %{ValueName}s
# You can also override any of the values from this section in the other sections, if need be.
###### Inputs ######
# The year of the (Senate) election. REQUIRED.
YEAR = 2019
# If you have a folder containing all 8 ballot CSVs and other relevant data, DATA_DIR is where to define it.
# OPTIONAL, but if you don't use it you will need to specify full paths
# for at least POLLING_PLACES_PATH, SA1S_BREAKDOWN_PATH and PREFS_PATH.
DATA_DIR = /mnt/Narnia/Psephology/Results/2019
# If you, like me, have a folder full of redistribution info for your SA1s_DISTS_PATH
# then you might want to abstract that out a bit...
DIST_DIR = /mnt/Narnia/Psephology/Redistributions and Boundaries
# POLLING_PLACES_PATH is the relatively tiny spreadsheet detailing all the polling places.
POLLING_PLACES_PATH = %(DATA_DIR)s/GeneralPollingPlacesDownload-24310.csv
# SA1S_BREAKDOWN_PATH is the reasonably large spreadsheet detailing the number of voters from each
# SA1 at each booth {technically for House, but we compensate}.
SA1S_BREAKDOWN_PATH = %(DATA_DIR)s/polling-place-by-sa1s-2019.csv
###### Outputs ######
# OUTPUT_DIR is the folder to put the output in. REQUIRED.
OUTPUT_DIR = output/AUS_%(YEAR)s
# These next three files will go in OUTPUT_DIR/Scenario/filename.csv
# All are REQUIRED (but may go unused).
# NPP_BOOTHS_FN defines the filename of the spreadsheet detailing NPP preferences by booth.
NPP_BOOTHS_FN = NPP_Booths.csv
# SA1S_PREFS_FN defines the filename of the spreadsheet detailing NPP preferences by SA1.
SA1S_PREFS_FN = SA1_Prefs.csv
# NPP_DISTS_FN defines the filename of the spreadsheet detailing NPP preferences by state/local district,
NPP_DISTS_FN = District_NPPs.csv
########################################################################################################################
###### ######
###### Welcome to the editable part of the file! ######
###### ######
###### All non-DEFAULT sections define "Scenarios" - competing groups of [pseudo]candidates. ######
###### ######
########################################################################################################################
[ACT_2PP]
# GROUPS defines the competing groups of [pseudo]candidates. REQUIRED.
# Note the structure of GROUPS, and that all names must be enclosed with double quotes
# {"GroupLabel" : ["GroupMember", ...], ...}
# (Technical note: The value of GROUPS is actually an embedded JSON array...)
# You can (and should) break the line and indent for readability - just remember to outdent for the next key!
GROUPS = {"Alp": ["G:Australian Labor Party", "G:GALLAGHER Katy", "G:WAITES Nancy"],
"Lib": ["A:Liberal", "A:SESELJA Zed", "A:GUNNING Robert"]}
# PREFS_PATH defines where the actual preferences path is. REQUIRED.
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-ACT.csv
# SA1S_DISTS_PATH maps SA1s to districts at state or local level.
# OPTIONAL. Simply leave every after the ` = ` blank if not performing this aggregation step.
SA1S_DISTS_PATH = %(DIST_DIR)s/ACT_2020/SA1s_Electorates.csv
# STATE defines the state/territory that this scenario applies to. REQUIRED.
STATE = ACT
[ACT_3PP]
GROUPS = {"Alp": ["G:Australian Labor Party", "G:GALLAGHER Katy", "G:WAITES Nancy"],
"Lib": ["A:Liberal", "A:SESELJA Zed", "A:GUNNING Robert"],
"Grn": ["B:The Greens", "B:KYBURZ Penny", "B:DAVIDSON Emma"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-ACT.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/ACT_2020/SA1s_Electorates.csv
STATE = ACT
[NSW_3PP]
GROUPS = {"Alp": ["J:Labor/Country Labor", "J:SHELDON Tony", "J:AYRES Tim", "J:LI Jason Yat-Sen", "J:PENGELLY Simonne", "J:CHANDRALA Aruna", "J:SHEAHAN Charlie"],
"Lnp": ["D:Liberal & Nationals", "D:HUGHES Hollie", "D:BRAGG Andrew", "D:DAVEY Perin", "D:MOLAN Jim", "D:FARRAWAY Sam", "D:FENELEY Michael"],
"Grn": ["G:The Greens", "G:FARUQI Mehreen", "G:JACOBS Rachael", "G:STEER Louise", "G:CLARK Philippa", "G:CHIA Roz", "G:ELLSMORE Sylvie"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-NSW.zip
SA1S_DISTS_PATH =
STATE = NSW
[NT_2PP]
GROUPS = {"Alp": ["B:Australian Labor Party (Northern Territory) Branch", "B:McCARTHY Malarndirri", "B:KURNORTH Wayne"],
"Lib": ["C:Country Liberals (NT)", "C:McMAHON Sam", "C:BURGOYNE Joshua"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-NT.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/NT_2020/SA1s_Electorates.csv
STATE = NT
[NT_3PP]
GROUPS = {"Alp": ["B:Australian Labor Party (Northern Territory) Branch", "B:McCARTHY Malarndirri", "B:KURNORTH Wayne"],
"Lib": ["C:Country Liberals (NT)", "C:McMAHON Sam", "C:BURGOYNE Joshua"],
"Grn": ["H:The Greens", "H:SRI Anna", "H:GILL Lia Ngaree"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-NT.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/NT_2020/SA1s_Electorates.csv
STATE = NT
[QLD_4PP]
GROUPS = {"Alp": ["J:Australian Labor Party", "J:GREEN Nita", "J:KETTER Chris", "J:GILBERT Frank", "J:MAJOR Tania", "J:SCHINNERL Stacey", "J:WARRY Christina"],
"Lnp": ["D:Liberal National Party of Queensland", "D:SCARR Paul", "D:MCDONALD Susan", "D:RENNICK Gerard", "D:MACDONALD Ian", "D:CAMM Amanda", "D:TOBIN Nicole"],
"Phn": ["B:Pauline Hanson's One Nation", "B:ROBERTS Malcolm", "B:DICKSON Steve"],
"Grn": ["H:The Greens", "H:WATERS Larissa", "H:SIDHU Navdeep Singh", "H:KLOOT Johanna", "H:ELLIS Raelene", "H:BERTRAM Miranda", "H:KENNEDY Kirsten"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-QLD.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/QLD_2017/SA1s_Dists_Qld17_2016_SA1s.csv
STATE = QLD
[QLD_4PP_withKAP]
GROUPS = {"Alp": ["J:Australian Labor Party", "J:GREEN Nita", "J:KETTER Chris", "J:GILBERT Frank", "J:MAJOR Tania", "J:SCHINNERL Stacey", "J:WARRY Christina"],
"Lnp": ["D:Liberal National Party of Queensland", "D:SCARR Paul", "D:MCDONALD Susan", "D:RENNICK Gerard", "D:MACDONALD Ian", "D:CAMM Amanda", "D:TOBIN Nicole"],
"Phk": ["B:Pauline Hanson's One Nation", "Q:Katter's Australian Party (KAP)", "B:ROBERTS Malcolm", "B:DICKSON Steve", "Q:MARRIOTT Joy", "Q:WALLACE Gregory John", "Q:WEBB Alan"],
"Grn": ["H:The Greens", "H:WATERS Larissa", "H:SIDHU Navdeep Singh", "H:KLOOT Johanna", "H:ELLIS Raelene", "H:BERTRAM Miranda", "H:KENNEDY Kirsten"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-QLD.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/QLD_2017/SA1s_Dists_Qld17_2016_SA1s.csv
STATE = QLD
[QLD_5PP_KAP]
GROUPS = {"Alp": ["J:Australian Labor Party", "J:GREEN Nita", "J:KETTER Chris", "J:GILBERT Frank", "J:MAJOR Tania", "J:SCHINNERL Stacey", "J:WARRY Christina"],
"Lnp": ["D:Liberal National Party of Queensland", "D:SCARR Paul", "D:MCDONALD Susan", "D:RENNICK Gerard", "D:MACDONALD Ian", "D:CAMM Amanda", "D:TOBIN Nicole"],
"Phn": ["B:Pauline Hanson's One Nation", "B:ROBERTS Malcolm", "B:DICKSON Steve"],
"Kap": ["Q:Katter's Australian Party (KAP)", "Q:MARRIOTT Joy", "Q:WALLACE Gregory John", "Q:WEBB Alan"],
"Grn": ["H:The Greens", "H:WATERS Larissa", "H:SIDHU Navdeep Singh", "H:KLOOT Johanna", "H:ELLIS Raelene", "H:BERTRAM Miranda", "H:KENNEDY Kirsten"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-QLD.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/QLD_2017/SA1s_Dists_Qld17_2016_SA1s.csv
STATE = QLD
[QLD_3PP_GRN_BCC]
GROUPS = {"Alp": ["J:Australian Labor Party", "J:GREEN Nita", "J:KETTER Chris", "J:GILBERT Frank", "J:MAJOR Tania", "J:SCHINNERL Stacey", "J:WARRY Christina"],
"Lnp": ["D:Liberal National Party of Queensland", "D:SCARR Paul", "D:MCDONALD Susan", "D:RENNICK Gerard", "D:MACDONALD Ian", "D:CAMM Amanda", "D:TOBIN Nicole"],
"Grn": ["H:The Greens", "H:WATERS Larissa", "H:SIDHU Navdeep Singh", "H:KLOOT Johanna", "H:ELLIS Raelene", "H:BERTRAM Miranda", "H:KENNEDY Kirsten"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-QLD.zip
SA1S_DISTS_PATH = %(DIST_DIR)s/Brisbane_2019/SA1s_Wards.csv
STATE = QLD
[SA_3PP]
GROUPS = {"Alp": ["O:Australian Labor Party", "O:GALLACHER Alex", "O:SMITH Marielle", "O:GORE Emily", "O:HARRISON Larissa"],
"Lib": ["G:Liberal", "G:RUSTON Anne", "G:FAWCETT David", "G:ANTIC Alex", "G:GICHUHI Lucy"],
"Grn": ["J:The Greens", "J:HANSON-YOUNG Sarah", "J:SUMNER Major Moogy", "J:ROZITISOLDS Gwydion", "J:SETO Robyn"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-SA.zip
SA1S_DISTS_PATH =
STATE = SA
[SA_4PP_CA]
GROUPS = {"Alp": ["O:Australian Labor Party", "O:GALLACHER Alex", "O:SMITH Marielle", "O:GORE Emily", "O:HARRISON Larissa"],
"Lib": ["G:Liberal", "G:RUSTON Anne", "G:FAWCETT David", "G:ANTIC Alex", "G:GICHUHI Lucy"],
"Grn": ["J:The Greens", "J:HANSON-YOUNG Sarah", "J:SUMNER Major Moogy", "J:ROZITISOLDS Gwydion", "J:SETO Robyn"],
"Xen": ["C:Centre Alliance", "C:KAKOSCHKE-MOORE Skye", "C:BOSSIE Craig"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-SA.zip
SA1S_DISTS_PATH =
STATE = SA
[TAS_4PP]
GROUPS = {"Alp": ["I:Australian Labor Party", "I:BROWN Carol", "I:BILYK Catryna", "I:SHORT John", "I:SINGH Lisa", "I:ROBERTS Wayne", "I:FLANAGAN Robert"],
"Lib": ["E:Liberal", "E:COLBECK Richard", "E:CHANDLER Claire", "E:DENISON Tanya"],
"Jln": ["L:Jacqui Lambie Network", "L:LAMBIE Jacqui", "L:WILLIAMS Glynn", "L:REYNOLDS Chris"],
"Grn": ["D:The Greens", "D:McKIM Nick", "D:HUTCHINSON Helen", "D:MARSH Simone"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-TAS.zip
SA1S_DISTS_PATH =
STATE = TAS
[VIC_3PP]
GROUPS = {"Alp": ["X:Australian Labor Party", "X:CICCONE Raffaele", "X:WALSH Jess", "X:MARSHALL Gavin", "X:SARWARA Parvinder", "X:DOUGLAS Karen", "X:CRAWFORD Louise"],
"Lnp": ["A:LIBERAL/THE NATIONALS", "A:PATERSON James", "A:HUME Jane", "A:VAN David", "A:RANK Anita", "A:HOPPITT Kyle", "A:MULCAHY Julian"],
"Grn": ["V:The Greens (VIC)", "V:RICE Janet", "V:SABARATNAM Apsara", "V:PROCTOR Claire", "V:THOMSON Nakita", "V:BARNES Alice", "V:CAMERON Judy"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-VIC.zip
SA1S_DISTS_PATH =
STATE = VIC
[WA_3PP]
GROUPS = {"Alp": ["G:Australian Labor Party", "G:DODSON Patrick", "G:PRATT Louise", "G:HERBERT Alana", "G:FRENCH Thomas", "G:GHOSH Varun", "G:VAUGHAN Alison"],
"Lib": ["C:Liberal", "C:REYNOLDS Linda", "C:BROCKMAN Slade", "C:O'SULLIVAN Matt", "C:BOTHA Trischa"],
"Grn": ["D:The Greens (WA)", "D:STEELE-JOHN Jordon", "D:WATSON Giz", "D:LONSDALE Heather", "D:KHADKA Bhuwan", "D:van GROOTEL Jacqueline", "D:CAHILL Jordan Louise"]}
PREFS_PATH = %(DATA_DIR)s/aec-senate-formalpreferences-24310-WA.zip
SA1S_DISTS_PATH =
STATE = WA