pref_voting 1.17.1__tar.gz → 1.17.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. {pref_voting-1.17.1 → pref_voting-1.17.3}/PKG-INFO +1 -1
  2. pref_voting-1.17.3/pref_voting/__init__.py +1 -0
  3. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/iterative_methods.py +6 -6
  4. pref_voting-1.17.3/pref_voting/proportional_methods.py +1575 -0
  5. {pref_voting-1.17.1 → pref_voting-1.17.3}/pyproject.toml +1 -1
  6. pref_voting-1.17.1/pref_voting/__init__.py +0 -1
  7. {pref_voting-1.17.1 → pref_voting-1.17.3}/LICENSE.txt +0 -0
  8. {pref_voting-1.17.1 → pref_voting-1.17.3}/README.md +0 -0
  9. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/analysis.py +0 -0
  10. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/axiom.py +0 -0
  11. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/axiom_helpers.py +0 -0
  12. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/axioms.py +0 -0
  13. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/c1_methods.py +0 -0
  14. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/combined_methods.py +0 -0
  15. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/create_methods.py +0 -0
  16. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Anti-Plurality.soc +0 -0
  17. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Borda.soc +0 -0
  18. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Bracket_Voting.soc +0 -0
  19. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Bucklin.soc +0 -0
  20. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Coombs.soc +0 -0
  21. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Coombs_PUT.soc +0 -0
  22. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Coombs_TB.soc +0 -0
  23. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Dowdall.soc +0 -0
  24. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff.soc +0 -0
  25. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff_PUT.soc +0 -0
  26. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff_TB.soc +0 -0
  27. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Iterated_Removal_Condorcet_Loser.soc +0 -0
  28. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Pareto.soc +0 -0
  29. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Plurality.soc +0 -0
  30. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_PluralityWRunoff_PUT.soc +0 -0
  31. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Positive-Negative_Voting.soc +0 -0
  32. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Simplified_Bucklin.soc +0 -0
  33. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Superior_Voting.soc +0 -0
  34. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_Weighted_Bucklin.soc +0 -0
  35. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Anti-Plurality.soc +0 -0
  36. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Borda.soc +0 -0
  37. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Bracket_Voting.soc +0 -0
  38. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Bucklin.soc +0 -0
  39. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs.soc +0 -0
  40. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs_PUT.soc +0 -0
  41. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs_TB.soc +0 -0
  42. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Dowdall.soc +0 -0
  43. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff.soc +0 -0
  44. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff_PUT.soc +0 -0
  45. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff_TB.soc +0 -0
  46. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Plurality.soc +0 -0
  47. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_PluralityWRunoff_PUT.soc +0 -0
  48. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Positive-Negative_Voting.soc +0 -0
  49. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Simplified_Bucklin.soc +0 -0
  50. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Weighted_Bucklin.soc +0 -0
  51. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/voting_methods_properties.json +0 -0
  52. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/data/voting_methods_properties.json.lock +0 -0
  53. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/dominance_axioms.py +0 -0
  54. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/generate_profiles.py +0 -0
  55. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/generate_spatial_profiles.py +0 -0
  56. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/generate_utility_profiles.py +0 -0
  57. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/generate_weighted_majority_graphs.py +0 -0
  58. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/grade_methods.py +0 -0
  59. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/grade_profiles.py +0 -0
  60. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/helper.py +0 -0
  61. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/invariance_axioms.py +0 -0
  62. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/io/__init__.py +0 -0
  63. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/io/readers.py +0 -0
  64. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/io/writers.py +0 -0
  65. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/maj_graph_ex1.png +0 -0
  66. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/mappings.py +0 -0
  67. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/margin_based_methods.py +0 -0
  68. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/monotonicity_axioms.py +0 -0
  69. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/num_evaluation_method.py +0 -0
  70. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/other_axioms.py +0 -0
  71. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/other_methods.py +0 -0
  72. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/pairwise_profiles.py +0 -0
  73. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/prob_voting_method.py +0 -0
  74. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/probabilistic_methods.py +0 -0
  75. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/profiles.py +0 -0
  76. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/profiles_with_ties.py +0 -0
  77. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/rankings.py +0 -0
  78. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/scoring_methods.py +0 -0
  79. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/social_welfare_function.py +0 -0
  80. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/social_welfare_functions.py +0 -0
  81. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/spatial_profiles.py +0 -0
  82. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/stochastic_methods.py +0 -0
  83. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/strategic_axioms.py +0 -0
  84. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/swf_axioms.py +0 -0
  85. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/utility_functions.py +0 -0
  86. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/utility_methods.py +0 -0
  87. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/utility_profiles.py +0 -0
  88. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/variable_candidate_axioms.py +0 -0
  89. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/variable_voter_axioms.py +0 -0
  90. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/voting_method.py +0 -0
  91. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/voting_method_properties.py +0 -0
  92. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/voting_methods.py +0 -0
  93. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/voting_methods_registry.py +0 -0
  94. {pref_voting-1.17.1 → pref_voting-1.17.3}/pref_voting/weighted_majority_graphs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pref_voting
3
- Version: 1.17.1
3
+ Version: 1.17.3
4
4
  Summary: pref_voting is a Python package that contains tools to reason about elections and margin graphs, and implementations of voting methods.
5
5
  License: MIT
6
6
  License-File: LICENSE.txt
@@ -0,0 +1 @@
1
+ __version__ = '1.17.3'
@@ -90,13 +90,13 @@ def _instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thre
90
90
  from pref_voting.profiles_with_ties import ProfileWithTies
91
91
  from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
92
92
 
93
- prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}, {}, {}])
94
- prof.display()
93
+ prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}])
94
+ # prof.display()
95
95
 
96
96
  tprof, report = prof.truncate_overvotes()
97
97
  for r, new_r, count in report:
98
98
  print(f"{r} --> {new_r}: {count}")
99
- tprof.display()
99
+ # tprof.display()
100
100
  instant_runoff_for_truncated_linear_orders.display(tprof)
101
101
 
102
102
 
@@ -514,13 +514,13 @@ def instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thres
514
514
  from pref_voting.profiles_with_ties import ProfileWithTies
515
515
  from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
516
516
 
517
- prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}, {}, {}])
518
- prof.display()
517
+ prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}])
518
+ # prof.display()
519
519
 
520
520
  tprof, report = prof.truncate_overvotes()
521
521
  for r, new_r, count in report:
522
522
  print(f"{r} --> {new_r}: {count}")
523
- tprof.display()
523
+ # tprof.display()
524
524
  instant_runoff_for_truncated_linear_orders.display(tprof)
525
525
 
526
526