Example #1
0
        'hazard': 0 / 5.0,
    },

    # Because there is a conflict, I have mechanically set the UOI rating to the average of the others, however
    # I have set hazard to zero instead of one because I have failed both of the other projects so is it best
    # in keeping with the intent of non-intervension for reason of conflict that I also fail the UOI project.
    'UOI': {
        'short': 3 / 5.0,
        'long': 2 / 5.0,
        'scope': 1 / 5.0,
        'risk': 1 / 5.0,
        'hazard': 0 / 5.0,
    },
})

print "WINNING PROJECTS: %s" % getApprovedProjects(budget, costs, votes)

projects = {}
for x in votes[0]:
    projects[x] = {
        'short': 0.,
        'long': 0.,
        'scope': 0.,
        'risk': 0.,
        'hazard': 0.
    }
for r in votes:
    for x in r:
        ## x = repo, price_display, etc
        for y in projects[x]:
            projects[x][y] += r[x][y]
Example #2
0
    'vpn': {
        'short': 0.5,
        'long': 0.5,
        'scope': 0.5,
        'risk': 0.5,
        'hazard': 0.5
    },
    'route_server': {
        'short': 0.5,
        'long': 0.5,
        'scope': 0.5,
        'risk': 0.5,
        'hazard': 0.5
    },
    'cjdns_wifi': {
        'short': 0.5,
        'long': 0.5,
        'scope': 0.5,
        'risk': 0.5,
        'hazard': 0.5
    },
    'cjdns_wireguard': {
        'short': 0.5,
        'long': 0.5,
        'scope': 0.5,
        'risk': 0.5,
        'hazard': 0.5
    },
})
print "RESULTS NOT YET FINAL - winners: %s" % getApprovedProjects(
    budget, costs, votes)