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

MatrixGrader raises error if IdentityMultiple submitted as answer #101

Closed ChristopherChudzicki closed 6 years ago

ChristopherChudzicki commented 6 years ago
from mitxgraders import *
grader = MatrixGrader(answers='[1, 2, 3]', debug=True)
grader(None, 'I')
# raises
# AttributeError: 'IdentityMultiple' object has no attribute 'shape'

Raised in MatrixGrader.validate_student_input_shape.