mitodl / mitx-grading-library

The MITx Grading Library, a python grading library for edX
https://edge.edx.org/courses/course-v1:MITx+grading-library+examples/
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Expanded answer structures for SingleListGrader #247

Closed jolyonb closed 5 years ago

jolyonb commented 5 years ago

This follows from #3.

In order to give feedback on lists, I'm going to propose allowing for a dictionary to describe the answer for a list in the following way:

answers = {'expect': [list of answers here], 'grade_decimal': 0.5, 'msg': 'Overall message here'}

The message would display only if all answers are correct; the grade_decimal value would multiply every box. One could also have tuples of such dictionaries. Just giving a list would be equivalent to having the expect keyword.

Note that this doesn't work nearly so nicely for ListGrader due to nested lists not having a nice place to put overall messages for sublists.

ChristopherChudzicki commented 5 years ago

Resolved, right?

jolyonb commented 5 years ago

Should be all resolved :-)

Sent from my iPhone

On Jul 14, 2019, at 7:22 PM, Chris Chudzicki notifications@github.com wrote:

Resolved, right?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

ChristopherChudzicki commented 5 years ago

Resolved by #261