WeBWorK Main Forum

Answer logs across students

Re: Answer logs across students

by Alex Jordan -
Number of replies: 3

1s and 0s for if each answer within the question was scored as fully correct or not.

In reply to Alex Jordan

Re: Answer logs across students

by Joseph Pedersen -
Up until now, I had been using that field to determine the %correct, by dividing the number of 1's by the length of the string (I always use equal weighting).

But I noticed on a recent assignment of a MathObject List answer, that that field only had a single '0' or '1', even though the assignment was giving partial credit.

Is there anywhere that that "partial credit" is recorded by answer (with time stamp)?

BACKGROUND (for the curious):

I have been using my own Python script to parse the answer logs to only accept answers that were submitted on webwork BEFORE they turned in a PDF copy of their assignment, so that students cannot turn in the PDF on time, but then update their webwork answers before I download the grades.

I cannot just have the assignment close at a particular time, because students are permitted to turn in the assignment late with a late penalty.  So most students turn in the assignment on time, but some are still working on the assignment up to 3 weeks later.  My script ensures that, once the assignment is closed and I grade everyone all at the same time, I only count the answers in the answer log BEFORE the timestamp of when the students turned in their PDF copy.

In reply to Joseph Pedersen

Re: Answer logs across students

by Glenn Rice -

The scores string saved to the answer log hasn't changed.  If the problem only has one answer, then the score string will be a single '0' or '1' even if the problem gives partial credit.  For example, if you have a list answer and a score of 0.5 (50%) is awarded, then the answer log will have '0' recorded.  The score of 0.5 is recorded for the user problem in the database, but it does not have a timestamp associated.

The past answer database table also records the timestamp and the same score string.  That would be a more reliable place to get this information because it is easier to parse than a text log file. Python has database libraries that can handle this nicely.  However, it still has the exact same score string that won't reflect partial credit.

This design with the score string is quite old, and certainly did not have partial credit in mind.  It is an ugly limitation of the answer log and past answer database table.

In reply to Glenn Rice

Re: Answer logs across students

by Joseph Pedersen -
Thank you very much for that information! Sorry, I wasn't trying to suggest that anything changed with the software when I said "up until now". I was just indicating why I was inquiring about the partial credit data to hopefully make my intent clear.