Skip to content

Commit df6cffa

Browse files
committed
add proportional methods to docs
1 parent dcaa216 commit df6cffa

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = 'pref_voting'
21-
copyright = '2024, Wes Holliday and Eric Pacuit'
21+
copyright = '2025, Wes Holliday and Eric Pacuit'
2222
author = 'Wes Holliday and Eric Pacuit'
2323

2424
# The full version, including alpha/beta/rc tags

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Contents
106106
margin_based_methods
107107
combined_methods
108108
other_methods
109+
proportional_methods
109110
probabilistic_methods
110111
stochastic_methods
111112
utility_methods

pref_voting/iterative_methods.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def _instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thre
9090
from pref_voting.profiles_with_ties import ProfileWithTies
9191
from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
9292
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()
9595
9696
tprof, report = prof.truncate_overvotes()
9797
for r, new_r, count in report:
9898
print(f"{r} --> {new_r}: {count}")
99-
tprof.display()
99+
# tprof.display()
100100
instant_runoff_for_truncated_linear_orders.display(tprof)
101101
102102
@@ -514,13 +514,13 @@ def instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thres
514514
from pref_voting.profiles_with_ties import ProfileWithTies
515515
from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
516516
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()
519519
520520
tprof, report = prof.truncate_overvotes()
521521
for r, new_r, count in report:
522522
print(f"{r} --> {new_r}: {count}")
523-
tprof.display()
523+
# tprof.display()
524524
instant_runoff_for_truncated_linear_orders.display(tprof)
525525
526526

0 commit comments

Comments
 (0)