def __init__(self, course: Course, gui_list: List[Union[str, None, Assignment]], csv_path: str): # Step 8.1 self.course = course self.csv_path = csv_path self.gui_list = gui_list self.third_party_students_full_name_pool = [] self.third_party_students_last_name_pool = [] self.canvas_students_full_name_pool = [] self.canvas_students_last_name_pool = [] # Step 8.2 self.grade_book = self.create_empty_grade_book() # Step 8.3 self.third_party_students = self.create_third_party_student_list() # Step 8.4 self.canvas_students = set( course.get_users(enrollment_type=["student"])) # Step 8.5 self.create_canvas_name_pool() # Step 8.6 self.match_students()
def get_staff_ids(course: Course) -> List[int]: """ Parameters ---------- course : `Course` The course to get staff IDs for Returns ------- `List[int]` A list of the IDs of all professors and TAs in the given course. """ staff = course.get_users(enrollment_type=["teacher", "ta"]) staff_ids = list(map(lambda user: user.id, staff)) return staff_ids