-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor:RainbowGrades] Edit Moss Default Value (#58)
The current mossify function assumes average_letter_grade to be greater than 0. moss_penalty += -average_letter_grade * penalty; s->getMossPenalty() < -0.01 is the threshold to check if student has moss penalty. However, if value of average_letter_grade or penalty is 0, it does not pass the threshold and does not catch the student when displaying the black outline or adding @ to final grade. Hence, quick fix made by increasing the default moss_penalty from -0.0000001 -> -0.0000002
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters