martinlackner / abcvoting

Python implementations of approval-based committee (multi-winner) voting rules
https://abcvoting.readthedocs.io/
MIT License
32 stars 16 forks source link

Fix seed in generate #81

Closed Simon-Rey closed 3 months ago

Simon-Rey commented 5 months ago

Fix the generate functions

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.95%. Comparing base (805bf6c) to head (3d690ca). Report is 5 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81/graphs/tree.svg?width=650&height=150&src=pr&token=QmepIV54V9&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner)](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner) ```diff @@ Coverage Diff @@ ## master #81 +/- ## ========================================== - Coverage 92.00% 91.95% -0.05% ========================================== Files 11 11 Lines 3150 3159 +9 Branches 1001 1003 +2 ========================================== + Hits 2898 2905 +7 Misses 146 146 - Partials 106 108 +2 ``` | [Files](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner) | Coverage Δ | | |---|---|---| | [abcvoting/abcrules.py](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?src=pr&el=tree&filepath=abcvoting%2Fabcrules.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner#diff-YWJjdm90aW5nL2FiY3J1bGVzLnB5) | `93.21% <ø> (ø)` | | | [abcvoting/generate.py](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?src=pr&el=tree&filepath=abcvoting%2Fgenerate.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner#diff-YWJjdm90aW5nL2dlbmVyYXRlLnB5) | `84.03% <100.00%> (-0.66%)` | :arrow_down: | | [abcvoting/preferences.py](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?src=pr&el=tree&filepath=abcvoting%2Fpreferences.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner#diff-YWJjdm90aW5nL3ByZWZlcmVuY2VzLnB5) | `100.00% <ø> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner). Last update [469ce77...3d690ca](https://app.codecov.io/gh/martinlackner/abcvoting/pull/81?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Lackner).