Skip to main content

Module grade_mapping

Module grade_mapping 

Source
Expand description

Our grade in the study registry’s terms. Every pair that reaches a batch has been through map_grade or is_known_grade.

Structs§

GradeSource
What the completion says and what the chosen enrolment says the scale should be.
MappedGrade

Enums§

GradeComparison
How a grade stands against one the registry already holds.
GradeScaleFamily

Constants§

FAIL_GRADE_ID
MAX_NUMERIC_GRADE
NUMERIC_GRADE_SCALE_ID
PASS_FAIL_GRADE_SCALE_ID
The spelling Suotar accepts, and the one we send. Both are accepted on the way in.
PASS_FAIL_GRADE_SCALE_ID_ALT
The other spelling of the same scale, which our own legacy pull path sends. Suotar refuses it.
PASS_GRADE_ID

Functions§

compare_grades
Whether candidate is worth pushing over registered, which is the frozen pair of an attempt the registry accepted.
grade_rank 🔒
Where a grade sits within its own scale. Comparable only against another rank of the same scale.
grade_scale_family 🔒
improves_on_all
Whether the grade ours maps to beats every grade in held, which is what Suotar requires of an improvement. None is a held credit whose grade is unknown.
is_known_grade
Whether a frozen pair is one we can send. Checked again before batching, so a pair our mapping does not produce fails on our side rather than as Suotar’s invalidGradeForGradeScale.
map_grade
Maps a completion into the scale the registry expects, preferring what it told us to a guess.
same_grade_scale
Whether two scale ids name the same scale. The pass/fail id has two spellings in circulation, so comparing the strings would call an attainment we ourselves registered a different scale.