PrefLib / preflibtools

A small and lightweight Python package for working with and generating data from www.PrefLib.org.
https://preflib.github.io/preflibtools/
GNU General Public License v3.0
11 stars 8 forks source link

Single-Winner Voting Rules #8

Closed claussmann closed 11 months ago

claussmann commented 11 months ago

Adds Plurality, Veto, k-Approval, Borda, Copeland, Approval, SAV, Fallback, Bucklin.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 93 lines in your changes are missing coverage. Please review.

Comparison is base (2b774e3) 89.97% compared to head (fd08c5c) 83.65%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #8 +/- ## ========================================== - Coverage 89.97% 83.65% -6.32% ========================================== Files 10 12 +2 Lines 1117 1248 +131 ========================================== + Hits 1005 1044 +39 - Misses 112 204 +92 ``` | [Files](https://app.codecov.io/gh/PrefLib/preflibtools/pull/8?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PrefLib) | Coverage Δ | | |---|---|---| | [preflibtools/aggregation/utilities.py](https://app.codecov.io/gh/PrefLib/preflibtools/pull/8?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PrefLib#diff-cHJlZmxpYnRvb2xzL2FnZ3JlZ2F0aW9uL3V0aWxpdGllcy5weQ==) | `94.73% <94.73%> (ø)` | | | [preflibtools/aggregation/single\_winner.py](https://app.codecov.io/gh/PrefLib/preflibtools/pull/8?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PrefLib#diff-cHJlZmxpYnRvb2xzL2FnZ3JlZ2F0aW9uL3NpbmdsZV93aW5uZXIucHk=) | `17.85% <17.85%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/PrefLib/preflibtools/pull/8/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PrefLib)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Simon-Rey commented 11 months ago

Great thanks!

Simon-Rey commented 11 months ago

Note that I have changed couple of things: