-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
PG 2.19 answerHints issue with custom graders which check correctness by checking conditions #1170
Comments
Not a solution to this actual issue but you have comments about |
I have what seems to be a fix in a PR I am about to submit. I fixed up the code in the first message so it now uses |
@taniwallach |
About the second issue - that this type of grader causes unexpected choices of messages in answerHints, the best fix I could come up with was to add just after the
It seems to me that the only real thing to possible do is to add to the documentation about This type of fix also prevents incorrect error messages for correct answers, but does require editing each problem. As such, I think that the patch from #1171 is still the best solution to the first issue, as it will fix backwards compatibility of not giving messages for correct answers without explicitly allowing them. |
Fixed that also above. Sorry |
Note, if a user is already writing their own answer checker, the answer checker itself could also be generating the message hints (this is what I do in my answer checkers) and not use |
I can confirm that this plus your fixes in #1171 gets the |
I have made an extended comment in #1171 that explains why the original |
Bottom line: The PG 2.19 changes to The documentation and sample problems should be improved to try to guide people away from the pitfalls. |
@lahvak: No. You are reading something wrong. |
The changes made in #974 are causing trouble for me in problems where answerHints is used after a custom grader which checks answers by checking conditions (in particular in the sample below checking if the student's answer satisfies an ODE). The sample is based on a real question but with all the dependence on random parameters and earlier parts of the question dropped.
I run into two issues:
Value->Error
so do not get a revised message.DNE
andNONE
and that apparently did not work even in the past.Sample problem
Give
-exp(-5x)/3
to see these issues. With the current (PG 2.19) version ofanswerHints.pl
an incorrect message is triggered. With the PG 2.18 version - no message is triggered.Another correct answer is `-exp(-5x)/3 + exp(-4x)'.
The text was updated successfully, but these errors were encountered: