input file validator

This commit is contained in:
SowinskiBraeden committed 2022-11-17 09:23:18 -08:00
1 parent ec8eaaec9a
commit 52d7a5d075
2 files changed
+23

No files matched your search

+5
View File
@@ -9,6 +9,7 @@ from app.util.globals import Error
from app.util.courses import getCourses, writeCoursesToCSV
from app.util.students import getStudents, writeStudentsToCSV
from app.util.errorCalculator import writeErrorsToCSV
from app.util.validator import validateInputData
eel.init('template')
@@ -49,6 +50,10 @@ def start(
block_class_limit = int(block_class_limit)
total_blocks = int(total_blocks)
eel.post_data('Validating input file...')
validateErr = validateInputData(raw_data_dir)
if validateErr is not None: return validateErr.__dict__
# call pre-algorithm functions read raw data into a processable format
eel.post_data('Collecting student information...')
students = getStudents(