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

fix some math on the per-slice inactive ballots #875

Conversation

artoonie
Copy link
Collaborator

@artoonie artoonie commented Jul 25, 2024

Closes #870

In the first commit, I fix a bug where the residual surplus is not calculated for by-slice structures. However, it added a lot of complexity for no benefit: the residual surplus is not printed in by-slice files. I have removed it, but in its place, I have updated a test for by-slice tabulation on multi-winner elections which we didn't have before. That will ensure that we'll have a test to ensure that residual surplus continues to not be included in the output by-slice files.

Also fixes a GUI bug where you couldn't close the tabulation window if an exception was thrown (should really be a separate PR, but it's small...)

@yezr
Copy link
Collaborator

yezr commented Aug 15, 2024

confirmed with testing that the inactive buckets are now being reported correctly in the by slice summary files

@artoonie artoonie merged commit f12fede into feature/issue-854_inactive-split Sep 3, 2024
1 check passed
@artoonie artoonie deleted the feature/issue-870_by-slice-inactive_math branch September 3, 2024 20:20
artoonie added a commit that referenced this pull request Sep 3, 2024
…undervotes (#857)

* Split undervote bucket into "0 rankings" and "less than max rankings"

* Update language choices

* reintroduce zero lines

* Each CVR must keep track of whether it's been fully ranked or not

* don't separate exhausted (fully) and (partially) -- solve just #780

* clean up

* keep order the same to minimize diff

* PR review

* support overvote/undervotes in Uses All Rankings

* fix some math on the per-slice inactive ballots (#875)

* fix some math on the per-slice inactive ballots

* add test for residual surplus in by-slice

* don't fix the residual surplus by-slice as its never shown

* lint

* clean up

* remove unnecessary comment
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.

[1.3.999] sub-jurisdiction summary.csv not reporting inactive buckets
2 participants