From 92ac4244a6561fb781a6caeb7aaefc0209401322 Mon Sep 17 00:00:00 2001 From: Martin Lackner Date: Mon, 3 Feb 2020 20:22:25 +0100 Subject: [PATCH] new example, all methods different --- apportionment/examples/simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apportionment/examples/simple.py b/apportionment/examples/simple.py index 266dffa..6d452c1 100644 --- a/apportionment/examples/simple.py +++ b/apportionment/examples/simple.py @@ -1,8 +1,8 @@ from __future__ import print_function import apportionment.methods as app -votes = [77, 22, 21, 10, 6] -seats = 10 +votes = [1, 3, 6, 7, 78] +seats = 20 print("votes", "."*(25 - len("votes")), votes, "\n") @@ -10,6 +10,6 @@ print(seats, "seats", "\n") print("apportionment results:") for method in ["quota", "largest_remainder", "dhondt", - "saintelague", "huntington", "adams"]: + "saintelague", "huntington", "adams", "dean"]: result = app.compute(method, votes, seats, verbose=False) print(method, "."*(25 - len(method)), result)