Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatrixGrader raises error if IdentityMultiple submitted as answer #101

Closed
ChristopherChudzicki opened this issue Aug 4, 2018 · 0 comments · Fixed by #105
Closed

MatrixGrader raises error if IdentityMultiple submitted as answer #101

ChristopherChudzicki opened this issue Aug 4, 2018 · 0 comments · Fixed by #105
Labels

Comments

@ChristopherChudzicki
Copy link
Collaborator

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.

@ChristopherChudzicki ChristopherChudzicki changed the title MatrixGrader cannot have IdentityMultiple as answer MatrixGrader raises error if IdentityMultiple submitted as answer Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant