estimate students grade level
This commit is contained in:
2 files changed
+13
-2
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
import json
|
||||
import csv
|
||||
from estimateGrade import getEstimatedGrade
|
||||
|
||||
flex= ("XAT--12A-S", "XAT--12B-S")
|
||||
|
||||
@@ -52,6 +53,10 @@ def getSampleStudents(data_dir: str, log: bool = False) -> list[dict]:
|
||||
}
|
||||
mockStudents.append(newStudent)
|
||||
|
||||
# Estimate student grades
|
||||
for student in mockStudents:
|
||||
student["gradelevel"] = getEstimatedGrade(student)
|
||||
|
||||
if log:
|
||||
with open("./output/students.json", "w") as outfile:
|
||||
json.dump(mockStudents, outfile, indent=2)
|
||||
|
||||
Reference in new issue
Block a user