-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
38 lines (38 loc) · 1.47 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from SchedulePlanner import SchedulePlanner
from CourseManager import CourseManager
import InfoGetter
import sys
# course_id = "ABP100Y1Y20169"
#
# course = InfoGetter.get_course(course_id = "ABP100Y1Y20169")
# print(course)
# print("\n\n\n\n\n")
course_manager = CourseManager()
# course_manager.add_course(course)
# course = InfoGetter.get_course("AER372H1S20181")
#
# print(course)
# print("\n\n\n\n\n")
# course_manager.add_course(course)
##
#course = InfoGetter.get_course("MAT135H1S20181")
#course_manager.add_course(InfoGetter.get_course("MAT135H1S20181"))
course_manager.add_course(InfoGetter.get_course("CSC207H1F20179"))
course_manager.add_course(InfoGetter.get_course("CSC258H1F20179"))
course_manager.add_course(InfoGetter.get_course("MAT244H1F20179"))
course_manager.add_course(InfoGetter.get_course("ABP100Y1Y20169"))
#course = InfoGetter.get_course("MAT135H1S20181")
#course_manager.add_course(InfoGetter.get_course("MAT223H1S20181"))
#course_manager.add_course(InfoGetter.get_course("CSC148H1S20181"))
#course_manager.add_course(InfoGetter.get_course("ECO102H1S20181"))
#course_manager.add_course(InfoGetter.get_course("CSC209H1S20181"))
##
schedule_planner = SchedulePlanner(course_manager)
list_of_schedule = schedule_planner.make_nonconflicting_schedule()
#list_of_schedule = schedule_planner.make_schedule()
print(list_of_schedule)
i = 0
for schedule in list_of_schedule:
print("schedule" +" " + str(i) +"\n " + str(schedule))
i += 1
print(sys.getsizeof(list_of_schedule))