def generate_new_groups(self, student_ids = student_data()["all_student_ids"]): random.shuffle(student_ids) start = 0 end = 0 for location in self.locations: end += self.locations[location] self.possible_new_group[location] = student_ids[start:end] start = end return
def overlap_count(self, student_data = student_data()): self.generate_new_groups() for new_group in self.possible_new_group.keys(): for each_student_in_group in self.possible_new_group[new_group]: self._create_score(self.possible_new_group[new_group], student_data[each_student_in_group]) return