Commit 644dc4f3 by Garrett Johnson

merge

parent f8bbd753
Showing with 4 additions and 1 deletions
......@@ -921,7 +921,6 @@ def make_gap_lower(districts_dict, all_tracts, num_districts, used_tracts,
new_gap = calculate_efficiency_gap_from_dict(districts_dict)
# print("hit", new_gap != best_gap)
if abs(new_gap) <= abs(best_gap):
new = False
best_total = tract_total
......@@ -1110,3 +1109,6 @@ if __name__=="__main__":
#print(district_plan)
print("The efficiency gap for this plan of {} is {}, which indicates that {} receive a districting advantage of {} seats.".format(sys.argv[1], results_gap, party, advantage))
create_json_file(district_plan,"district_plans/" + sys.argv[1])
d = recover_json("district_plans/" + "Iowa" + ".json")
print(d)
\ No newline at end of file
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