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
Conversation
There was a problem hiding this 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?
server/api/reports.py
Outdated
macro.compute_error( | ||
{contest.name: reported_results}, | ||
{contest.name: audit_results}, | ||
# Construct the contest object by hand instead of using |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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. |
doh, that's right. My bad! |
c3dcf54
to
35370e6
Compare
Task: #1222
Reworks
macro.compute_error
to return aBatchError
dict so that we can return both the raw error in votes and the weighted error (mirroring what we do insupersimple
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.