-
-
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
singleResult should score even with messages #524
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw this as well a while back. I thought it was intentional, but didn't like the behavior. Good change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected.
I have been working around this bug in local files for a while by scaling score to counteract the bug... starting from before I was looking at making many code changes...
Although I will need to fix the local problems to remove the hacks - this should certainly be merged as soon as possible.
Merging as soon as possible... |
@taniwallach: I am not sure. That probably depends on what hacks were used to work around this. The approach that I use will work the same both with and without this pull request. I don't use the setMessage method, and instead store my messages in a custom key of the answer hash, and then deal with putting those messages into the ans_message variable in a post filter. Part of the reason that I do this is because I don't like the table that the parserMultiAnswer.pl macro creates. It is ugly for one thing. That could be cleaned up with some work on css styling. Furthermore, the "In answer $i" part is generally not as informative as to how the answers match up to which parts as intended in these single result problems. Particularly when errors really relate to multiple parts and how they fit together. |
The styling was based on the classes at the time MultiAnswer was first developed (ages ago), and doesn't work so well now. More flexibility in the format of the message would be useful. This was developed pretty early on, and its various uses and needs were not yet clear at the time. Some updates are probably in order. |
Just a simple multiplication of the desired grade by a factor of the form: N/(N-k) when there are N graded items and k messages were set.
That makes more work for the programmer, and others will not know how to do it.
So let's improve it so others can use the main
I agree, and in some problems I have put in text explaining about such matters. Maybe we want to be able to have "rows" not linked to a specific box. |
MultiAnswer objects with
singleResult=>1
do not properly compute score whensetMessage
is used.To test: