Re: [LON-CAPA-users] Custom Response Partial Credit

2018-05-18 Thread Jacob Bond
Hi Gene, It looks like stored_data('tries', ID) should get you what you want. Best, Jacob From: LON-CAPA-users on behalf of Harding, Gene L Sent: Friday, May 18, 2018 10:27:33 PM To:

Re: [LON-CAPA-users] Custom Response Partial Credit

2018-05-18 Thread Harding, Gene L
Hi Jacob, Thank you. I have managed to get it to respond correctly (red incorrect of total_score==0, tan partial credit if 0

Re: [LON-CAPA-users] Custom Response Partial Credit

2018-05-18 Thread Jacob Bond
Hi Gene, You're right that the last return statement shouldn't be there. Also, there is a subtlety about returning 'INCORRECT' in a partial credit problem. If a student submits an answer that gets 1/2 credit, then changes it to an answer that gets 0 credit, returning 'INCORRECT' will leave

[LON-CAPA-users] Custom Response Partial Credit

2018-05-18 Thread Harding, Gene L
Hi, I rewrote the problem I have been working on so that it is now a custom response, but am having trouble getting it to properly grade the problem submission. This is the code for grading inside the answer block: if ($total_score == 1) { return 'EXACT_ANS'; } elsif