edx/edx-platform — pull request #5048 by jbau (2014-09-02 23:27:28+00:00)
Title: capa custom response support for decimal grades

@nedbat please forward to someone(s) for review whenever convenient

This adds support for partial (decimal) grades to custom python-graded responses. Basically, in the dict returned by the grading function (specified by python), I've added an additional, *optional* key `grade_decimal`, that will specify the partial credit for that response (instead of binary 0 or max). The `ok` key still controls "correctness" in `CorrectMap`, which shows up in the UI as controlling the "checkmark" versus "x" displayed to the student. This partial credit functionality for the score of a response was surprisingly not present before.

The particular use case we have is that our compilers course has a programming component that's done via a downloaded VM. Students can run a grading script on the VM, get a hash, and then copy and paste this hash into a custom-graded response with a textbox to get a score. Since the score can any integer [0, 63], we needed to be able to specify partial credit.

@jinpa as FYI.