def preCount(self): NonIterative.preCount(self) assert(self.completion in ["Schwartz Sequential Dropping", "IRV on Smith Set", "Borda on Smith Set"]) self.optionsMsg = "Using %s for the completion method." % self.completion
def preCount(self): NonIterative.preCount(self) assert (self.completion in [ "Schwartz Sequential Dropping", "IRV on Smith Set", "Borda on Smith Set" ]) self.optionsMsg = "Using %s for the completion method." % self.completion
def __init__(self, b): NonIterative.__init__(self, b) MethodPlugin.__init__(self) self.completion = "Schwartz Sequential Dropping" self.createGuiOptions(["completionMethod"]) self.e = None self.smithSet = [] self.SSDinfo = "" self.pMat = [] self.dMat = []
def preCount(self): NonIterative.preCount(self) assert(self.ballotCompletion in ["On", "Off"]) if self.ballotCompletion == "On": # The only fractions that will ever appear because of ballot completion # is 1/2 so no more precision is necessary. self.optionsMsg = "Using ballot completion." self.prec = 1 else: self.optionsMsg = "Not using ballot completion." self.prec = 0 self.p = 10**self.prec
def preCount(self): NonIterative.preCount(self) assert (self.ballotCompletion in ["On", "Off"]) if self.ballotCompletion == "On": # The only fractions that will ever appear because of ballot completion # is 1/2 so no more precision is necessary. self.optionsMsg = "Using ballot completion." self.prec = 1 else: self.optionsMsg = "Not using ballot completion." self.prec = 0 self.p = 10**self.prec
def __init__(self, b): NonIterative.__init__(self, b) MethodPlugin.__init__(self) self.ballotCompletion = "Off" self.createGuiOptions(["ballotCompletion"])
def __init__(self, b): NonIterative.__init__(self, b) MethodPlugin.__init__(self)
def preCount(self): NonIterative.preCount(self) self.optionsMsg = "" self.prec = 0 self.p = 10**self.prec
def __init__(self, b): NonIterative.__init__(self, b) MethodPlugin.__init__(self) self.createGuiOptions([])
def preCount(self): NonIterative.preCount(self) self.optionsMsg = "" self.prec = 0 self.p = 10 ** self.prec