Skip to content

Commit 696ef98

Browse files
author
Eric Tsai
committed
remove top counts by vote type (for now)
1 parent b08b201 commit 696ef98

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

src/election_anomaly/__init__.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -962,32 +962,6 @@ def top_counts_by_vote_type(self, election: str, rollup_unit: str, sub_unit: str
962962
connection.close()
963963
return err_str
964964

965-
def top_counts(self, election: str, rollup_unit: str , sub_unit: str):
966-
d, error = ui.get_runtime_parameters(
967-
["rollup_directory"], param_file="run_time.ini", header="election_anomaly"
968-
)
969-
if error:
970-
print("Parameter file missing requirements.")
971-
print(error)
972-
print("Data not created.")
973-
return
974-
else:
975-
connection = self.session.bind.raw_connection()
976-
cursor = connection.cursor()
977-
rollup_unit_id = db.name_to_id(self.session, "ReportingUnit", rollup_unit)
978-
sub_unit_id = db.name_to_id(self.session, "ReportingUnitType", sub_unit)
979-
election_id = db.name_to_id(self.session, "Election", election)
980-
rollup = a.create_rollup(
981-
cursor,
982-
d["rollup_directory"],
983-
rollup_unit_id,
984-
sub_unit_id,
985-
election_id,
986-
by_vote_type=False,
987-
)
988-
connection.close()
989-
return
990-
991965
def scatter(
992966
self,
993967
jurisdiction: str,

0 commit comments

Comments
 (0)