mggg / VoteKit

A Swiss Army Knife for computational social choice research
https://votekit.readthedocs.io/en/latest/
MIT License
10 stars 12 forks source link

ballot class updates #114

Closed cdonnay closed 9 months ago

cdonnay commented 9 months ago

Updates to ballot class for tutorial notebooks.

  1. Add a __str__ method for Ballot.
  2. Allow users to input non-fractions as weights.
  3. Change voters to voter_set.
  4. Fix printing of PreferenceProfiles so that it does not round Fraction objects to integers.
cdonnay commented 9 months ago

Edits approved and viewed by Moon.