-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcourseProcessing.html
More file actions
49 lines (46 loc) · 4.74 KB
/
courseProcessing.html
File metadata and controls
49 lines (46 loc) · 4.74 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module courseProcessing</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>courseProcessing</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/jamesho/Documents/Olin/SOFTDES/CoursePlanner9000/courseProcessing.py">/Users/jamesho/Documents/Olin/SOFTDES/CoursePlanner9000/courseProcessing.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="User.html">User</a><br>
</td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top><a href="pandas.html">pandas</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-checkRequiredCourses"><strong>checkRequiredCourses</strong></a>(requiredCourses, currentCourses)</dt><dd><tt>This method will take in a list of required courses and current courses and return the courses you still need</tt></dd></dl>
<dl><dt><a name="-filterCourses"><strong>filterCourses</strong></a>(filters)</dt><dd><tt>This function will take in some query parameters and filter the formatted courses<br>
<br>
:param filters: a list containing the columns to perform an AND query on<br>
:returns: dictionary of all the filtered courses and their information</tt></dd></dl>
<dl><dt><a name="-formatCourses"><strong>formatCourses</strong></a>()</dt><dd><tt>takes the course data from my.olin.edu and creates a table with the corrent columns</tt></dd></dl>
<dl><dt><a name="-getAllCourses"><strong>getAllCourses</strong></a>()</dt><dd><tt>Reads from processed courses csv file and returns a pandas dataframe</tt></dd></dl>
<dl><dt><a name="-getCourseById"><strong>getCourseById</strong></a>(id)</dt><dd><tt>returns the course with the specific row ID</tt></dd></dl>
<dl><dt><a name="-getCourseInfo"><strong>getCourseInfo</strong></a>(text)</dt><dd><tt>Parses the description the 'Faculty / Schedule' column of the csv from my.olin.edu add/drop<br>
and creates a dataframe with the correct columns<br>
text: String, the text you want to parse.</tt></dd></dl>
<dl><dt><a name="-getDateTime"><strong>getDateTime</strong></a>(dateString)</dt><dd><tt>This function takes in the string that represents a time and returns a datetime object<br>
dateString: String, represents the time 00:00AM as an example</tt></dd></dl>
<dl><dt><a name="-getWeekdays"><strong>getWeekdays</strong></a>(days)</dt><dd><tt>Given a string of characters, converts it into a boolean tuple with length of 7, <br>
each representing whether or not the course is offered on each day<br>
days: String, with characters in MTWRT representing when each class is offered in the week<br>
returns: Tuple, indexed monday to friday in order. 1 means offered, 0 means not</tt></dd></dl>
</td></tr></table>
</body></html>