Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reported batch results and discrepancies in audit report #1240

Merged
merged 5 commits into from Jul 6, 2021

Conversation

jonahkagan
Copy link
Contributor

@jonahkagan jonahkagan commented Jul 6, 2021

Task: #1222

Reworks macro.compute_error to return a BatchError dict so that we can return both the raw error in votes and the weighted error (mirroring what we do in supersimple for ballot comparison). Then adds the raw error to the audit report, along with the reported results from the batch tallies file. We count and report negative errors as 0, while batches with no error are counted as 0 but reported as blank.

Copy link
Contributor

@umbernhard umbernhard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like the "not found counted as vote for the loser" is tested here, is it tested somewhere else already?

macro.compute_error(
{contest.name: reported_results},
{contest.name: audit_results},
# Construct the contest object by hand instead of using
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to add another from_db_contest function or add a flag to the existing one that does this? Are we likely to have to do this again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading this comment, I ended up figuring out another way to do this that just uses from_db_contest instead

@jonahkagan
Copy link
Contributor Author

It doesn't look like the "not found counted as vote for the loser" is tested here, is it tested somewhere else already?

I think in batch comparison we have to rely on the auditors to count not found ballots for the loser, since they enter a count for the entire batch.

@umbernhard
Copy link
Contributor

doh, that's right. My bad!

@jonahkagan jonahkagan merged commit 7b017d9 into main Jul 6, 2021
@jonahkagan jonahkagan deleted the batch-tallies-in-report branch July 6, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants