-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMajor.py
More file actions
49 lines (42 loc) · 1.48 KB
/
Major.py
File metadata and controls
49 lines (42 loc) · 1.48 KB
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
39
40
41
42
43
44
45
46
47
48
49
import pandas as pd
from pathlib import Path
class Major:
'''
Major class contains
- required general courses
- required general credits
'''
# # define required Courses
# MAJOR_MECHE_COURSES = list()
# MAJOR_MECHE_COURSES.append("COURSE1")
# MAJOR_MECHE_COURSES.append("COURSE2")
# MAJOR_MECHE_COURSES.append("COURSE3")
# MAJOR_MECHE_COURSES.append("COURSE3")
# CURRENT_COURSES = list()
# CURRENT_COURSES.append("COURSE1")
# CURRENT_COURSES.append("COURSE2")
def __init__(self):
'''
initializes a Major object that contains all the
general requirement credits and required courses
'''
# TODO: Read a course requirement csv to determine the major requirements
# Define code variables
self.SUB_CODE_ENGR = 'ENGR'
self.SUB_CODE_AHSE = 'AHSE'
self.SUB_CODE_MTH = 'MTH'
self.SUB_CODE_SCI = 'SCI'
self.SUB_CODE_SUST = 'SUST'
self.SUB_CODE_ADMN = 'ADMN'
self.cwd = Path.cwd()
self.filePath = Path(self.cwd / 'courseData/updated_Live_Course_Cat.csv')
self.courseTable = pd.read_csv(self.filePath)
# Define a list of general courses
self.generalRequiredCourses = []
# General Requirements
self.generalRequiredCredits = {
self.SUB_CODE_ENGR: 46,
self.SUB_CODE_MTH: 10,
self.SUB_CODE_SCI: 20,
self.SUB_CODE_AHSE: 28
}