Subversion Repositories Remote Hare Voting

Rev

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

Rev 61 Rev 63
Line 15... Line 15...
15
    filenameCSV = os.path.join(dirpath, filename)
15
    filenameCSV = os.path.join(dirpath, filename)
16
    filenameOut = os.path.splitext(filenameCSV)[0] + ".out"
16
    filenameOut = os.path.splitext(filenameCSV)[0] + ".out"
17
    nWinners, ballots = parseinput.parsefile(filenameCSV)
17
    nWinners, ballots = parseinput.parsefile(filenameCSV)
18
 
18
 
19
    random.seed(1)
19
    random.seed(1)
20
    vote.doone(nWinners, ballots)
20
    vote.doparallel(nWinners, ballots)
21
    result = tally.fdOut.getvalue()
21
    result = tally.fdOut.getvalue()
22
 
22
 
23
    if os.path.isfile(filenameOut):
23
    if os.path.isfile(filenameOut):
24
        fOut = open(filenameOut)
24
        fOut = open(filenameOut)
25
        correct = fOut.read()
25
        correct = fOut.read()