示例#1
0
    def __init__(self):
        PairGenerator.__init__(self)

        # holds comparison pairs the user has already completed
        self.comparison_pairs = []
        self.scored_objects = []

        self.rounds = []
        # round_objects[round_number] = [ScoredObject]
        self.round_objects = {}
示例#2
0
    def __init__(self):
        PairGenerator.__init__(self)

        # holds comparison pairs the user has already completed
        self.comparison_pairs = []
        self.scored_objects = []

        self.rounds = []
        # round_objects[round_number] = [ScoredObject]
        self.round_objects = {}
示例#3
0
 def _setup_rounds(self, comparison_pairs, scored_objects):
     # change None value scores to zero
     for (index, scored_object) in enumerate(scored_objects):
         if scored_object.score == None:
             scored_objects[index] = scored_object._replace(score=0)
     PairGenerator._setup_rounds(self, comparison_pairs, scored_objects)
示例#4
0
 def __init__(self):
     PairGenerator.__init__(self)
示例#5
0
 def _setup_rounds(self, comparison_pairs, scored_objects):
     # change None value scores to zero
     for (index, scored_object) in enumerate(scored_objects):
         if scored_object.score == None:
             scored_objects[index] = scored_object._replace(score=0)
     PairGenerator._setup_rounds(self, comparison_pairs, scored_objects)
示例#6
0
    def __init__(self):
        PairGenerator.__init__(self)

        self.criterion_scores = {}
        self.criterion_weights = {}
示例#7
0
 def __init__(self):
     PairGenerator.__init__(self)