Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FileHelpers/csvLoaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def loadGradescope(_filename):

gradescopeDF.rename(columns={'Lateness': 'hours_late'}, inplace=True)
# All NaN values should be handled at this point
gradescopeDF = gradescopeDF.astype({'hours_late': "float"}, copy=False)
gradescopeDF = gradescopeDF.astype({'hours_late': "float", 'SID': "string"}, copy=False)

gradescopeDF.rename(columns={'SID': 'multipass'}, inplace=True)
print("Done.")
Expand Down
3 changes: 3 additions & 0 deletions Grade/grade.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ def calculateLatePenalty(_gradescopeDF: pd.DataFrame, _specialCasesDF: pd.DataFr
_gradescopeDF.at[i, 'lateness_comment'] = \
f"-{(1 - latePenalty[daysLate]) * 100:02.0f}%25: {daysLate} {pluralizedDays} late"

_gradescopeDF.at[i, 'Total Score'] = max(_gradescopeDF.at[i, 'Total Score'], 0)


# the only possible case here is if a student has a special case requested but was not found in gradescope
if not _specialCasesDF.empty and specialCaseStudents != len(

Expand Down