示例#1
0
  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
示例#2
0
    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
示例#3
0
  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
示例#4
0
    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
示例#5
0
    def preCount(self):
        NonIterative.preCount(self)

        self.optionsMsg = ""
        self.prec = 0
        self.p = 10**self.prec
示例#6
0
    def preCount(self):
        NonIterative.preCount(self)

        self.optionsMsg = ""
        self.prec = 0
        self.p = 10 ** self.prec