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

allow batch elimination and "continue until two candidates remain" to be enabled in multi-pass IRV mode #611

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

tarheel
Copy link
Contributor

@tarheel tarheel commented Aug 8, 2022

To refresh everyone's memory: "multi-pass IRV" is an especially silly form of multi-winner RCV in which you run a series of single-winner elections, excluding the candidates who have already won from each subsequent pass. So this filed issue is correct that there's no reason you shouldn't be able to enable these options for this election mode.

I'll also add a test for this one when I figure out that process.

Fixes #556.

moldover
moldover previously approved these changes Aug 11, 2022
Copy link
Contributor

@moldover moldover left a comment

Choose a reason for hiding this comment

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

Long live multi-pass IRV.

@moldover moldover requested review from moldover and removed request for moldover August 11, 2022 00:44
@moldover moldover dismissed their stale review August 11, 2022 00:47

I forgot that you're going to add a test first.

@tarheel
Copy link
Contributor Author

tarheel commented Aug 16, 2022

test added

@moldover
Copy link
Contributor

moldover commented Aug 17, 2022

This looks like a good test and code change.
Can I convince you to remove the 'test_set' prefix from your test/file names?
What is up with the force-pushes? That should be a merge from develop -> multi-pass, right?

@tarheel
Copy link
Contributor Author

tarheel commented Aug 17, 2022

Yes, I can rename them.

I have to force push after I rebase an open PR on main. I know doing a merge commit is also an option, but I prefer this workflow, though I admit it's not perfect.

@moldover
Copy link
Contributor

I have to force push after I rebase an open PR on main. I know doing a merge commit is also an option, but I prefer this workflow, though I admit it's not perfect.

Don't let perfect be the enemy of the good. They should be friends.

@tarheel tarheel merged commit 177c3f9 into develop Aug 17, 2022
@tarheel tarheel deleted the multi-pass branch August 17, 2022 06: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.

batch elimination and "continue until two candidates remain" should be permitted under multi-pass IRV
2 participants