Subversion Repositories Remote Hare Voting

Rev

Rev 45 | Rev 75 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 46
Line 158... Line 158...
158
#       eliminate lowest ranking candidate
158
#       eliminate lowest ranking candidate
159
#       redistribute wasted votes to next priority candidate
159
#       redistribute wasted votes to next priority candidate
160
#
160
#
161
def dotally(nWinners, ballots):
161
def dotally(nWinners, ballots):
162
    global randcalls
162
    global randcalls
-
 
163
    randcalls = 0
163
    nBallots = len(ballots)
164
    nBallots = len(ballots)
164
    quota = int(math.ceil((nBallots + 1.0)/(nWinners + 1)))
165
    quota = int(math.ceil((nBallots + 1.0)/(nWinners + 1)))
165
 
166
 
166
    trace("INPUT SUMMARY AND SINGLE RUN TRACE")
167
    trace("INPUT SUMMARY AND SINGLE RUN TRACE")
167
    trace("\t%d ballots" % nBallots)
168
    trace("\t%d ballots" % nBallots)