Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
added Spring 2019 Excel Sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
shannenigans committed Jul 14, 2019
1 parent d99b9b8 commit 55d869e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions converter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import math

TERM = '2018 Fall'
TERM = '2019 Spring'

def main():
dirname = os.path.dirname(__file__)
Expand All @@ -21,15 +21,15 @@ def main():
with open(output_filename, 'w+', encoding='utf-8') as outfile:
json.dump(processed_records, outfile)

def nest_grades(records: list):
def nest_grades(records):
for record in records:
record['grades'] = construct_dict_of_grades(record)
record = clean_record(record)
record['term'] = TERM

return records

def construct_dict_of_grades(record: dict):
def construct_dict_of_grades(record):
grades = dict()

grades['A+'] = record['A+']
Expand All @@ -55,7 +55,7 @@ def construct_dict_of_grades(record: dict):

return cleaned_grades

def clean_record(record: dict):
def clean_record(record):
del record['A+']
del record['A']
del record['A-']
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions data/Spring 2019/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[LocalizedFileNames]
UT Dallas Spring 2019 Grade Distributions.xlsx=@UT Dallas Spring 2019 Grade Distributions,0

0 comments on commit 55d869e

Please sign in to comment.