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

Generalized IC/IAC - Ballot Simplex #90

Merged
merged 17 commits into from
Aug 31, 2023
Merged

Generalized IC/IAC - Ballot Simplex #90

merged 17 commits into from
Aug 31, 2023

Conversation

jennjwang
Copy link
Collaborator

No description provided.

@jennjwang
Copy link
Collaborator Author

jennjwang commented Aug 28, 2023

Looking for review on ballot generator refactoring (can disregard the ballot simplex class)

The goal is allow users to initialize a Ballot Generator in two ways. 1) to provide a set of parameters including alpha, cohesion factor and construct a preference interval (this is the from_paeans method) 2) to specify the preference interval and bloc to voter proportion directly. Since python does not allow overloading, I'd like feedback on how to implement both types of parameterization

@jennjwang jennjwang requested a review from jgibson517 August 29, 2023 19:08
src/votekit/ballot_generator.py Show resolved Hide resolved
tests/test_models.py Show resolved Hide resolved
@@ -422,185 +445,6 @@ def group_elements_by_mapping(element_list, mapping):
)


# def test_Cambridge_distribution():
Copy link
Member

Choose a reason for hiding this comment

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

also looks like you overwrote some of the tweaks Zach and i made to make the cambridge test pass consistently, unless you two redid it after I left. looks like it was this in this commit: 798fef5

Copy link
Collaborator

@jamesturk jamesturk left a comment

Choose a reason for hiding this comment

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

Deferring to Jack on the substance here since a lot is removed and not sure of the context. Commented on a few tiny things.

src/votekit/ballot_generator.py Outdated Show resolved Hide resolved
src/votekit/ballot_generator.py Show resolved Hide resolved
src/votekit/ballot_generator.py Show resolved Hide resolved
@jennjwang jennjwang merged commit e4a0b90 into main Aug 31, 2023
2 checks passed
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.

3 participants