Commit 42ad2177 by Anne Rogers

merge

parents 0f36fc1d 546780a7
colors
#000000
#8b0000
#ffc0cb
#008080
#daa520
#ff0000
#00ffff
#d3ffce
#ff7373
#ffd700
#40e0d0
#eeeeee
#0000ff
#e6e6fa
#cccccc
#b0e0e6
#ffa500
#f0f8ff
#7fffd4
#333333
#f6546a
#c0c0c0
#003366
#00ff00
#800080
#666666
#faebd7
#20b2aa
#00ced1
#fa8072
#468499
#c6e2ff
#088da5
#ffc3a0
#800000
#ffb6c1
#b6f442
#c39797
#ffff00
#ff6666
#66cdaa
#f5f5f5
#990000
#ff00ff
#808080
#660066
#008000
#81d8d0
#cbbeb5
#afeeee
#c0d6e4
#00ff7f
#ff4040
"/Dicts/"
\ No newline at end of file
"{1: {'D': 451178.6631706402, 'total_population': 989415, 'tracts': ['30029001200', '30029000800', '30029001700', '30053000100', '30089000200', '30053000500', '30053000300', '30061964600', '30047000200', '30029001301', '30047000100', '30063001800', '30039961700', '30077000100', '30049000100', '30049000300', '30013010400', '30059000100', '30045000100', '30027030100', '30065000100', '30067000100', '30069000100', '30033000100', '30105100100', '30079000100', '30021000100', '30019020300', '30091090400', '30055954000', '30109000100', '30017961300', '30075000100', '30011000300', '30031000501', '30091090200', '30067000200', '30037000100', '30005000200', '30031000102', '30097967000', '30095966500', '30009000400', '30009000500', '30089000100', '30061964500', '30009000200', '30099000300', '30099000100', '30015010200', '30041040100', '30099000200', '30085080100', '30087000100', '30103963500', '30067000500', '30067980600', '30063000902', '30089940300', '30049000600', '30087000200', '30013010600', '30029000100', '30035980000', '30009000100', '30017961900', '30107000100', '30031000504', '30071060200', '30073977000', '30081000800', '30001000100', '30057000300', '30057000200', '30043962300', '30081000700', '30057000100', '30083070200', '30007000200', '30009000300', '30053000400', '30051050100', '30101000100', '30077000200', '30007000100', '30105100500', '30031000502', '30081000500', '30095966600', '30029000602', '30017961800', '30083070100', '30023000500', '30023000400', '30025000100', '30031001001', '30105940600', '30021000200', '30029000202', '30041040200', '30095966400', '30029001302', '30065000200', '30029000402', '30053000200', '30005000100', '30093000800', '30093000700', '30093000500', '30081000100', '30013002300', '30067000400', '30031000300', '30081000201', '30081000300', '30027030200', '30003940500', '30081000600', '30081000202', '30013001700', '30043962202', '30043962201', '30049001100', '30017961500', '30001000200', '30013010700', '30073977200', '30101000200', '30101980000', '30041040500', '30081000401', '30031000400', '30083070400', '30013010100', '30081000402', '30047940301', '30029000601', '30093000300', '30023000300', '30111001502', '30031000101', '30035976000', '30031001200', '30017962000', '30017961600', '30047940303', '30049001000', '30029001400', '30063000901', '30063001400', '30029000401', '30031001600', '30111001501', '30083070300', '30049001202', '30013000400', '30047940700', '30013001800', '30087000300', '30013002200', '30067000300', '30029000300', '30049000501', '30021000300', '30015010300', '30031001500', '30029000203', '30029000201', '30093000600', '30063000400', '30049000502', '30093000400', '30049000200', '30049000400', '30047940600', '30063001600', '30013001900', '30031000600', '30063000100', '30063000300', '30013000200', '30013001000', '30111001401', '30111001802', '30111001300', '30111001804', '30111001803', '30111001801', '30111001901', '30111000704', '30111001200', '30111001902', '30063001500', '30031001002', '30031000800', '30029000700', '30041040400', '30013000800', '30003940700', '30013010800', '30111001402', '30111001704', '30013000100', '30111940000', '30001000300', '30013000700', '30049000700', '30031001102', '30013001600', '30111001702', '30041040300', '30111000500', '30111000800', '30063001303', '30029000900', '30029001000', '30031000701', '30063001302', '30049000900', '30013000300', '30013001100', '30063000700', '30063001100', '30111000402', '30111000901', '30035940400', '30111000600', '30047940400', '30085940001', '30005940200', '30111000706', '30111000701', '30063001304', '30093000200', '30093000100', '30013002100', '30049001201', '30111000705', '30013000900', '30111000401', '30063001200', '30049000800', '30111001703', '30029001100', '30047940500', '30111000702', '30111001100', '30085940002', '30003000100', '30031000900', '30111000200', '30063001000', '30003940600', '30003940400', '30005940100', '30111001000', '30063000202', '30031000200', '30041940300', '30063000800', '30031000702', '30031000103', '30031001101', '30111000902', '30111000300', '30063000201', '30031000503', '30013001200', '30087940400', '30063000500', '30035940200'], 'R': 538236.3368293574}}"
\ No newline at end of file
"{1: {'D': 190046.29408318546, 'total_population': 370833, 'tracts': ['54037972503', '54037972402', '54037972401', '54037972506', '54037972505', '54037972501', '54037972203', '54037972204', '54037972201', '54003971400', '54003971300', '54003971600', '54003971500', '54003972000', '54003971700', '54003971900', '54003971101', '54037972601', '54037972300', '54003972102', '54003972101', '54037972701', '54003971201', '54037972602', '54037972702', '54037972800', '54003971102', '54003971800', '54003971202', '54065971000', '54065970900', '54065970800', '54027968200', '54027968500', '54027968400', '54023969400', '54057010700', '54057010600', '54031970300', '54031970200', '54071970600', '54093965200', '54093965300', '54057010500', '54077964500', '54091964900', '54077964400', '54061011804', '54061011000', '54061010102', '54061010600', '54061010201', '54061012000', '54061010700', '54061011600', '54061010202', '54061010901', '54061010101', '54061010800', '54061010400', '54061011100', '54061010902', '54061011200', '54061011805', '54061011700', '54061011803', '54061011806', '54077963800', '54061011900', '54061011500', '54061011300', '54049021500', '54049020600', '54049020500', '54049020200', '54049020100', '54049020400', '54049021400', '54049020800', '54049020300', '54049020700', '54049021300', '54049021100', '54049021800', '54033031700', '54033031500', '54033031600', '54049021700', '54033031800', '54033031900', '54033032000'], 'R': 180786.7059168146}, 2: {'D': 173413.47212691946, 'total_population': 371421, 'tracts': ['54033032102', '54033030800', '54033032101', '54091964800', '54091964600', '54049021000', '54049021200', '54001965700', '54091964700', '54001965600', '54049020900', '54001965500', '54097967100', '54097967000', '54101970100', '54007967900', '54021967700', '54067950400', '54067950600', '54067950200', '54007968100', '54007968000', '54019020900', '54019020100', '54019020700', '54039012100', '54039012200', '54039012300', '54043955400', '54039011500', '54019020201', '54039013000', '54039013100', '54039010100', '54039010500', '54039010701', '54079020500', '54079020603', '54079020605', '54079020400', '54039010801', '54035963700', '54053954900', '54039010600', '54039013702', '54011010800', '54011010700', '54011010400', '54011010201', '54011010102', '54099020400', '54011010500', '54019020400', '54039012800', '54039002100', '54039000700', '54039000600', '54039013600', '54039011800', '54039011302', '54019020800', '54079020601', '54039010702', '54079020200', '54079020100', '54019020202', '54081001500', '54081000802', '54081000300', '54081000200', '54081000400'], 'R': 198007.52787308014}, 3: {'D': 163422.609395503, 'total_population': 371106, 'tracts': ['54081000600', '54081001001', '54081001300', '54081001100', '54081001400', '54081000500', '54019020600', '54109002800', '54005958700', '54045956500', '54081001002', '54005958800', '54005958400', '54109002902', '54109003000', '54047953900', '54047954000', '54047953800', '54059957700', '54081000700', '54059957600', '54005958300', '54045956102', '54043955700', '54099021000', '54099020900', '54043955800', '54043955500', '54099020700', '54019020500', '54011010600', '54011010300', '54011000101', '54011001900', '54011000102', '54011002000', '54011002100', '54099005200', '54099005100', '54099020100', '54011001100', '54011000900', '54011001000', '54011000600', '54011010900', '54011000200', '54011000300', '54011001200', '54005958502', '54005958501', '54005958600', '54005958200', '54081001200', '54109003100', '54099020800', '54043955600', '54079020700', '54039013701', '54039013800', '54039013200', '54039013300', '54039010200', '54039013400', '54039013500', '54059957500', '54059957300', '54059957200', '54045956800', '54045956900', '54045956400', '54099020500', '54059957100', '54109002901', '54039010300', '54099020600', '54099020300', '54011010202', '54109003200', '54055000900', '54055001600', '54089000800', '54089000700', '54089000500', '54019021100', '54019021000', '54067950700', '54025950200', '54067950500', '54101970300', '54101970200', '54075960300', '54067950100', '54015957900', '54075960200', '54075960101', '54075960102', '54071970400', '54083966300', '54093965400', '54083966200', '54023969500', '54071970500', '54015958000', '54067950300', '54015958100', '54083966000', '54087963100', '54087962800', '54013962600', '54105030102', '54085962400', '54085962500', '54105030101', '54107010800', '54087962900', '54039010802'], 'R': 207683.3906044963}}"
\ No newline at end of file
"{1: {'R': 171105.35143531032, 'D': 369647.64856469, 'total_population': 540753, 'tracts': ['10005050403', '10005050406', '10005050407', '10005050408', '10005050302', '10005050200', '10005050503', '10005050105', '10005050504', '10005050104', '10001042500', '10005050701', '10005050801', '10005050703', '10005050602', '10005051500', '10005051400', '10005050405', '10005051801', '10005051802', '10005050301', '10005050401', '10005050501', '10005051900', '10001043400', '10001042202', '10001042201', '10001041200', '10001041000', '10001040501', '10001043300', '10001041400', '10001041100', '10001041300', '10001040203', '10001041500', '10001040700', '10001041802', '10001040900', '10001040201', '10001041801', '10001040202', '10001041702', '10001040502', '10001041701', '10001041600', '10003016904', '10001990000', '10005990000', '10003016804', '10003016604', '10003016801', '10005051101', '10005051103', '10005051204', '10005051205', '10005051203', '10003016601', '10003014810', '10003014808', '10003014903', '10003014906', '10003016302', '10003014909', '10003016305', '10003013904', '10003014907', '10003014908', '10003014706', '10003014904', '10003015200', '10003015400', '10003001902', '10003002900', '10003000900', '10003000500', '10003000200', '10003000601', '10003000300', '10003000602', '10003002700', '10003002600', '10003002200', '10003002300', '10003001600', '10003002400', '10003002100', '10003003002', '10003015502', '10003016000', '10003010702', '10003002800', '10003012900', '10003001500', '10003015600', '10003000400', '10003002500', '10003013903', '10003001400', '10003980100', '10003015000', '10003015802', '10003012300', '10003013901', '10003014000', '10003014100', '10003013700', '10003014809', '10003015900', '10003016401', '10003012200', '10003016200', '10003014807', '10003014702', '10003001200', '10003016100', '10003012400', '10003014703', '10003016301', '10003013800', '10003013614', '10003014402', '10003014403', '10003014501', '10003012100', '10003014200', '10003014705', '10003001100']}}"
\ No newline at end of file
"{1: {'R': 105415.76281681132, 'total_population': 410877, 'tracts': ['15007040603', '15007040400', '15007040800', '15007990100', '15007990200', '15007041200', '15007990300', '15003981200', '15003990001', '15003940002', '15003009701', '15003009603', '15003009608', '15003009703', '15003009802', '15009990000', '15009991200', '15003980300', '15005990000', '15003980600', '15003009501', '15003009502', '15009990200', '15009030903', '15001991200', '15001991300', '15001991100', '15001991000', '15001990900', '15001990800', '15001990700', '15001990600', '15009980000', '15001991400', '15001991500', '15001991600', '15001991700', '15001990000', '15001990100', '15001990300', '15001990400', '15001990500', '15003981100', '15003980000', '15003008611', '15003008502', '15003011500', '15003008411', '15003008412', '15003008406', '15003008405', '15003008302', '15003008606', '15003008617', '15003008703', '15003008702', '15003008800', '15003008701', '15005031900', '15003008914', '15003008001', '15003007808', '15003008410', '15003007303', '15003008912', '15003008613', '15003008921', '15003008920', '15003980200', '15003007000', '15003006809', '15003981400', '15003981300', '15003006600', '15003006201', '15003006202', '15003006401', '15003006402', '15003004800', '15003006100', '15003004900', '15003005500', '15003006301', '15003006000', '15003006900', '15003006802', '15003005800', '15003005600', '15003006302', '15003008922', '15003008923', '15003006804', '15003007100', '15003006702', '15003007506', '15003005400', '15003006808', '15003009704', '15003008913', '15003008925', '15003008924', '15003009000', '15003980700', '15003009100', '15003009504', '15003008926', '15003008927', '15003008928', '15003008929', '15003009400', '15003003900', '15003005300', '15003008003', '15003008930', '15003006500', '15003008408', '15003008301', '15003008407', '15003008931', '15003009300', '15003011300', '15003008915', '15003008907', '15003005700', '15003010000', '15003010504', '15003010503', '15003008002', '15003007805', '15003007804', '15003007809'], 'D': 305461.23718318925}, 2: {'R': 134838.89545241697, 'total_population': 409687, 'tracts': ['15003007807', '15003007811', '15003007502', '15003007505', '15003007504', '15003007701', '15003007503', '15003007400', '15003007302', '15003010303', '15003008005', '15003008006', '15003008007', '15003007810', '15003010305', '15003007702', '15003006701', '15003010308', '15003980800', '15003010601', '15003006805', '15003006806', '15003004600', '15003004700', '15003005000', '15003004300', '15003003300', '15003003405', '15003003406', '15003004400', '15003003501', '15003003601', '15003003604', '15003002500', '15003002401', '15003002300', '15003002701', '15003002100', '15003002201', '15003002402', '15003001201', '15003001202', '15003001100', '15003003603', '15003001300', '15003001400', '15003002600', '15003003407', '15003001500', '15003002004', '15003002003', '15003004100', '15003005100', '15003002900', '15003000903', '15003000700', '15003003200', '15003002702', '15003003502', '15003001600', '15003005200', '15003002202', '15003004200', '15003001000', '15003000800', '15003001801', '15003002006', '15003004000', '15003002005', '15003000600', '15003003404', '15003001901', '15003010602', '15003003800', '15003001804', '15003003102', '15003010702', '15003000901', '15003003403', '15003002800', '15003001903', '15003003101', '15003003000', '15003001803', '15003003700', '15003000401', '15003000301', '15003000302', '15003000200', '15003000114', '15003011400', '15003000402', '15003000902', '15003010306', '15003010507', '15003010505', '15003010508', '15003004500', '15003011000', '15003981000', '15003010903', '15003010905', '15003011103', '15003000108', '15003000107', '15003940001', '15003000111', '15003000110', '15003001904', '15003010904', '15003001700', '15003011105'], 'D': 274848.1045475829}}"
\ No newline at end of file
"{1: {'tracts': ['35029000100', '35029000200', '35029000600', '35029000300', '35029000500', '35013001400', '35013001307', '35013001304', '35013001305', '35013001306', '35013001900', '35013001802', '35013001806', '35013001805', '35013001801', '35013001804', '35035000902', '35013001104', '35013001000', '35013000900', '35013000700', '35013000800', '35013001203', '35013000600', '35013000401', '35013000402', '35035000601', '35013001702', '35013001701', '35013001707', '35013001705', '35013001706', '35013000500', '35013000202', '35013000103', '35013001600', '35013000300', '35013000102', '35013001703', '35013001102', '35017964600', '35013000201', '35017964800', '35017964500', '35035000500', '35035000100', '35035000200', '35035000303', '35013000104', '35035000305', '35013001103', '35023970000', '35023970200', '35035000401', '35035000603', '35035000602', '35035000306', '35015000700', '35015000800', '35015000600', '35015000500', '35015000402', '35015000100', '35025000900', '35025000800', '35025000702', '35025000400', '35025000300', '35025000100', '35025000200', '35025000502', '35025000600', '35025000701', '35025000704', '35025000503', '35025000703', '35015000401', '35025001100', '35025001005', '35025001004', '35025001003', '35005001400', '35005001300', '35005001101', '35005000600', '35005000500', '35005000201', '35005000400', '35005000700', '35005000202', '35005000800', '35005001200', '35005000300', '35041000401', '35041000200', '35041000300', '35009000603', '35009000100', '35009000202', '35009000400', '35009000900'], 'D': 278730.11293692776, 'R': 134372.88706307206, 'total_population': 413103}, 2: {'tracts': ['35009000301', '35009000201', '35009000303', '35009000602', '35009000601', '35037958900', '35037958602', '35019961600', '35047957700', '35021000100', '35057963202', '35047957500', '35047957300', '35047957200', '35047957400', '35047957800', '35049010310', '35033955200', '35049010102', '35039000100', '35039940700', '35039000300', '35039944100', '35049940500', '35049940900', '35049940600', '35049940300', '35043940300', '35039000200', '35039940800', '35049940400', '35039000400', '35043010900', '35001004746', '35039941000', '35043010723', '35001940600', '35001004712', '35001004739', '35001004733', '35001004734', '35001004740', '35001004741', '35001004738', '35001004737', '35001004713', '35001002402', '35001002300', '35001004750', '35001004749', '35001004715', '35006946100', '35001004735', '35001940700', '35001004743', '35001004742', '35006941500', '35001004744', '35001004300', '35001004501', '35001004001', '35001001200', '35001001300', '35031944000', '35031943600', '35031943700', '35031943800', '35031945300', '35031945200', '35031943902', '35031945600', '35001004736', '35045943100', '35045943000', '35045942802', '35045942803', '35045000503', '35045942900', '35043940900', '35001001500', '35001002000', '35001003400', '35001003733', '35061940300', '35061970101', '35061970301', '35053940000', '35001004502', '35031943901', '35001004401', '35001001400', '35001004604', '35031945400', '35001000205', '35001000801'], 'D': 292546.7945303656, 'R': 120022.20546963536, 'total_population': 412569}, 3: {'tracts': ['35001000708', '35001000707', '35001000901', '35001000603', '35001000713', '35001000712', '35001000604', '35001000903', '35001000904', '35001000714', '35001000704', '35001000128', '35001000501', '35001000127', '35001000115', '35001000114', '35001000120', '35001000118', '35001003714', '35001000204', '35001000203', '35001000113', '35001000129', '35001000126', '35001000119', '35001000207', '35001000208', '35001000124', '35001000110', '35001000206', '35001003707', '35001003725', '35001003736', '35001003735', '35001003501', '35001003201', '35001003202', '35001002900', '35001002500', '35001002401', '35001002600', '35001003001', '35001002700', '35001002100', '35001004729', '35001004722', '35001004752', '35001004725', '35001004726', '35001004728', '35001004751', '35001004748', '35001004747', '35001004727', '35001004753', '35001004717', '35001004745', '35043010720', '35001004716', '35043010722', '35043010721', '35043010713', '35001002200', '35001004724', '35043010712', '35001003722', '35001000117', '35001003718', '35001004720', '35001000116', '35001003002', '35043010718', '35043010717', '35043011000', '35043940200', '35043940600', '35043940700', '35043010503', '35043940500', '35049010900', '35049010308', '35049001304', '35049001303', '35049001205', '35049001204', '35049001302', '35049001202', '35049001203', '35049001301', '35049010314', '35049980000', '35049001106', '35049000800', '35049000700', '35049001002', '35049001103', '35049000400', '35049000300', '35049001105', '35049010603', '35049000900', '35049010601', '35049001107', '35049010304', '35049010316', '35049001102', '35001000123', '35001000111'], 'D': 273311.0165381581, 'R': 138643.98346184238, 'total_population': 411955}}"
\ No newline at end of file
"{1: {'R': 180786.7059168146, 'tracts': ['54037972800', '54037972402', '54037972401', '54037972506', '54037972503', '54037972505', '54037972501', '54037972203', '54037972204', '54037972201', '54003971400', '54003971300', '54003972000', '54003971600', '54003971500', '54003971700', '54003971900', '54003971101', '54037972300', '54037972601', '54003972102', '54003972101', '54003971201', '54037972701', '54037972602', '54037972702', '54003971102', '54003971800', '54003971202', '54065971000', '54065970900', '54065970800', '54027968200', '54027968500', '54027968400', '54023969400', '54057010700', '54057010600', '54031970300', '54031970200', '54071970600', '54093965200', '54093965300', '54057010500', '54077964500', '54091964900', '54077964400', '54061011804', '54061011000', '54061010102', '54061010600', '54061010201', '54061012000', '54061010700', '54061011600', '54061010202', '54061010901', '54061010101', '54061010800', '54061010400', '54061011100', '54061010902', '54061011200', '54061011805', '54061011700', '54061011803', '54061011806', '54077963800', '54061011900', '54061011500', '54061011300', '54049021500', '54049020600', '54049020500', '54049020200', '54049020100', '54049020400', '54049021400', '54049020800', '54049020300', '54049020700', '54049021300', '54049021100', '54049021800', '54033031700', '54033031500', '54033031600', '54049021700', '54033031800', '54033031900', '54033032000'], 'total_population': 370833, 'D': 190046.29408318546}, 2: {'R': 198007.52787308014, 'tracts': ['54033032102', '54033030800', '54033032101', '54091964800', '54091964600', '54049021000', '54049021200', '54001965700', '54091964700', '54001965600', '54049020900', '54001965500', '54097967100', '54097967000', '54101970100', '54007967900', '54021967700', '54067950400', '54067950600', '54067950200', '54007968100', '54007968000', '54019020900', '54019020100', '54019020700', '54039012100', '54039012200', '54039012300', '54043955400', '54039011500', '54019020201', '54039013000', '54039013100', '54039010100', '54039010500', '54039010701', '54079020500', '54079020603', '54079020605', '54079020400', '54039010801', '54035963700', '54053954900', '54039010600', '54039013702', '54011010800', '54011010700', '54011010400', '54011010201', '54011010102', '54099020400', '54011010500', '54019020400', '54039012800', '54039002100', '54039000700', '54039000600', '54039013600', '54039011800', '54039011302', '54019020800', '54079020601', '54039010702', '54079020200', '54079020100', '54019020202', '54081001500', '54081000802', '54081000300', '54081000200', '54081000400'], 'total_population': 371421, 'D': 173413.4721269194}, 3: {'R': 207683.39060449624, 'tracts': ['54081000600', '54081001001', '54081001300', '54081001100', '54081001400', '54081000500', '54019020600', '54109002800', '54005958700', '54045956500', '54081001002', '54005958800', '54005958400', '54109002902', '54109003000', '54047953900', '54047954000', '54047953800', '54059957700', '54081000700', '54059957600', '54005958300', '54045956102', '54043955700', '54099021000', '54099020900', '54043955800', '54043955500', '54099020700', '54019020500', '54011010600', '54011010300', '54011000101', '54011001900', '54011000102', '54011002000', '54011002100', '54099005200', '54099005100', '54099020100', '54011001100', '54011000900', '54011001000', '54011000600', '54011010900', '54011000200', '54011000300', '54011001200', '54005958502', '54005958501', '54005958600', '54005958200', '54081001200', '54109003100', '54099020800', '54043955600', '54079020700', '54039013701', '54039013800', '54039013200', '54039013300', '54039010200', '54039013400', '54039013500', '54059957500', '54059957300', '54059957200', '54045956800', '54045956900', '54045956400', '54099020500', '54059957100', '54109002901', '54039010300', '54099020600', '54099020300', '54011010202', '54109003200', '54055000900', '54055001600', '54089000800', '54089000700', '54089000500', '54019021100', '54019021000', '54067950700', '54025950200', '54067950500', '54101970300', '54101970200', '54075960300', '54067950100', '54015957900', '54075960200', '54075960101', '54075960102', '54071970400', '54083966300', '54093965400', '54083966200', '54023969500', '54071970500', '54015958000', '54067950300', '54015958100', '54083966000', '54087963100', '54087962800', '54013962600', '54105030102', '54085962400', '54085962500', '54105030101', '54107010800', '54087962900', '54039010802'], 'total_population': 371106, 'D': 163422.60939550304}}"
\ No newline at end of file
"{1: {'tracts': ['56037970601', '56037970903', '56037970800', '56037971000', '56037970902', '56037970500', '56037970901', '56037970602', '56037971100', '56037971600', '56007967600', '56007967700', '56007967800', '56037971200', '56023978200', '56041975300', '56041975400', '56007968100', '56037970700', '56023978400', '56035000101', '56009956600', '56009956500', '56031959100', '56015958000', '56015957800', '56009956700', '56025001401', '56025000200', '56025001602', '56025000600', '56025000502', '56025000700', '56025000400', '56025000300', '56025001200', '56025000800', '56025001100', '56025001700', '56025000501', '56025000901', '56009956400', '56025001000', '56005000100', '56005000200', '56005000300', '56005000400', '56005000600', '56005000500', '56005000700', '56015957700', '56027957200', '56035000102', '56013940100', '56013940202', '56013940300', '56013940500', '56013000100', '56013940400', '56013000200', '56025001603', '56021002000', '56021000200', '56021000501', '56021000300', '56021000402', '56021000700', '56021001100', '56021000600', '56021001000', '56021001502', '56021000401', '56021001401', '56021001501', '56021980801', '56021000800', '56021001402', '56021000900', '56017967900', '56043000200', '56043000301', '56043000302', '56003962600'], 'R': 162364.70961219695, 'total_population': 340702, 'D': 178337.29038780276}}"
\ No newline at end of file
...@@ -5,7 +5,7 @@ import matplotlib.pyplot as plt ...@@ -5,7 +5,7 @@ import matplotlib.pyplot as plt
# the Basemap code was sourced from StackOverflow: stackoverflow.com/questions/19915266/drawing-a-graph-with-networkx-on-a-basemap # the Basemap code was sourced from StackOverflow: stackoverflow.com/questions/19915266/drawing-a-graph-with-networkx-on-a-basemap
from mpl_toolkits.basemap import Basemap as Basemap from mpl_toolkits.basemap import Basemap as Basemap
sys.path.insert(0, "../reading_shapes") sys.path.insert(0, "../reading_shapes")
from util import recover_json, color_csv from util import recover_json, color_csv, recover_json_special, recover_pickle, create_pickle_file
color_dict = color_csv('',"Colors.csv") color_dict = color_csv('',"Colors.csv")
...@@ -33,13 +33,12 @@ m = Basemap(projection='merc', llcrnrlon=-130, llcrnrlat=25, urcrnrlon=-60, urcr ...@@ -33,13 +33,12 @@ m = Basemap(projection='merc', llcrnrlon=-130, llcrnrlat=25, urcrnrlon=-60, urcr
# dictionary # dictionary
num_args = len(sys.argv) num_args = len(sys.argv)
if num_args == 3: temp = recover_json_special("district_plans/" + sys.argv[1] + ".json")
d = recover_json("district_plans/" + sys.argv[1] + ".json")
elif num_args == 2:
d = recover_json(sys.argv[1] + ".json")
unused_all = set() unused_all = set()
d = eval(temp)
for num in d: for num in d:
# create networkx map for each district # create networkx map for each district
G = nx.Graph() G = nx.Graph()
...@@ -49,6 +48,7 @@ for num in d: ...@@ -49,6 +48,7 @@ for num in d:
d_all_tracts = d[num]["tracts"] d_all_tracts = d[num]["tracts"]
d_used = set() d_used = set()
for d_tract in d_all_tracts: for d_tract in d_all_tracts:
print(num)
tract_info = state_tracts[d_tract] tract_info = state_tracts[d_tract]
connections_currenct = tract_info["connections"] connections_currenct = tract_info["connections"]
connections_currenct.append(d_tract) connections_currenct.append(d_tract)
......
m.drawcountries()
m.drawstates()
m.drawcoastlines()
plt.title('New district outlines')
plt.show()
\ No newline at end of file
...@@ -18,4 +18,4 @@ for state in STATES: ...@@ -18,4 +18,4 @@ for state in STATES:
d = algorithms_new.percents_countdown(state, 60) d = algorithms_new.percents_countdown(state, 60)
best_tract_dict[state] = d[3] best_tract_dict[state] = d[3]
create_json_file(best_tract_dict, state + "_optimal_starting_tracts") create_json_file(best_tract_dict, state + "_optimal_starting_tracts")
print(state, "optimal tract saved!") print(state, "optimal tract saved!")
\ No newline at end of file
import ast import ast
import json import json
import csv import csv
import pickle
def create_json_file(dictionary, path_file_name): def create_json_file(dictionary, path_file_name):
...@@ -17,6 +18,25 @@ def recover_json(json_file): ...@@ -17,6 +18,25 @@ def recover_json(json_file):
dict_tracts = ast.literal_eval(str_tracts) dict_tracts = ast.literal_eval(str_tracts)
return dict_tracts return dict_tracts
def create_pickle_file(dictionary, path_file_name):
with open(path_file_name + ".pickle", "wb") as pickle_file:
pickle.dump(dictionary, pickle_file)
def recover_pickle(pickle_file):
with open(pickle_file, "rb") as pf:
pickle.load(pf)
return dict_tracts
def recover_json_special(json_file):
with open(json_file) as json_tracts:
dict_tracts = json.load(json_tracts)
return dict_tracts
def read_csv(path, file_name): def read_csv(path, file_name):
with open(path + file_name) as csvfile: with open(path + file_name) as csvfile:
num_districts_states = {} num_districts_states = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment