Analysis of responses not calculating correctly

Re: Analysis of responses not calculating correctly

door Tim Hunt -
Aantal antwoorden: 2
Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
Don't worry. I know all about more urgent issues coming up.

Thank you for checking. i am now very mystified. The logic is relatively simple: It loops over every attempt at each question https://github.com/moodle/moodle/blob/master/question/classes/statistics/responses/analyser.php#L125, it asks the question type to classify the response: https://github.com/moodle/moodle/blob/master/question/type/multichoice/question.php#L187, and then counts them up. And, this code is covered by unit tests.

What else could be happening??? Are you using How questions behave: Interactive with multiple tries (or adaptive)? Or are you using Allow redo within an attempt?

I'd love to know what is going on here.
Gemiddelde van de beoordelingen:  -
Als antwoord op Tim Hunt

Re: Analysis of responses not calculating correctly

door Greg Merchant -

I know I'm resurrecting an old thread, but this was happening on my site also, but I think we accidentally found the issue, at least for us.  The "Decimal places in grades" was set to zero for the quiz.  The "Count" number corrected after we changed the decimal places to two.

Gemiddelde van de beoordelingen: Useful (1)
Als antwoord op Greg Merchant

Re: Analysis of responses not calculating correctly

door Tim Hunt -
Foto van Core developers Foto van Documentation writers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van Plugin developers
That is good detective work, and it sounds like a bug. The statistics report should analyse the raw data, before rounding.

I made MDL-70043 (which is a terrible example of how to report a bug. Don't do that!) Please add any extra details there.
Gemiddelde van de beoordelingen: Useful (1)