

Then the next inner loop run will still run through all of the trials from the running_list, but this time there will only be the incorrect trials. Then outside the inner loop, clear the running_list and add the trials from the wrong_list to the running_list, and clear the wrong_list. Then if their response was incorrect, add that trial number to the wrong_list. This will loop through your running list (which will be all trials for the first loop) and will call to the trial information for each trial in that list. The inner loop should run through all of the trial number you have in your running list, and you would grab trial information with, for example, currentSound = soundsList]. Do you call to them by row number? That’s how I was assuming you would do it, so that you can save the incorrect trial numbers and cycle through those numbers every time, rather than the whole excel file. capacity, the quantity of correct trial information recalled/noted down. I usually just set up my own conditions/trials manually at the beginning of the experiment. Further, Chapter 6 studied individual differences in sustained and divided.
#PSYCHOPY REPEAT INCORRECT TRIAL LATER ON HOW TO#
I personally never use excel files for conditions, so I’m not sure exactly how to call to trials that way. Thank you in advance for your help and support.
#PSYCHOPY REPEAT INCORRECT TRIAL LATER ON CODE#
I need your help to find the right code for removing trials that receive the correct answers in the second loop and finish the loop when the wrong_list is empty. Print(type(mouse_9.clicked_name)) # DEBUG If number_correct/(testing_block9_loop.nTotal) >= 1: If testing_block9_loop.thisN + 1 = testing_block9_loop.nTotal: The codes in ‘End Routine’: if trials_9.thisN >= 1 and row_ID not in wrong_list: If trials_9.thisN = 0 and testing_block9_loop.thisN =0: My codes in "Begin Routine: if testing_block9_loop.thisN = 0: Now, I want to remove row_IDs that receive correct answers in the next loops and finish the loop after the wrong_list becomes empty. Hint: you can access response times from a keypress using keyresp.rt and convert numbers to strings using str(x) where x is your number. give trial-by-trial feedback on how fast the participant was. Change nReps to 1 and the click the Browse buttons to choose the conditions. set the color of the trial-by-trial feedback to be green if the response is correct and red if incorrect. In the first and second loops, everything is okay but the wrong_list that has been created from the first loop is repeated in other loops. Click Insert Loop then click on the left and right sides of the trial routine. To do that, I created an outer loop with the name trials_9 and wrote the codes to create a list of wrong trials (wrong_list) after the first loop based on the instruction in How to repeat incorrect trials only. After starting the experiment in PsychoPy, you can choose the language of the experiment. In the training block, I want to repeat incorrect trials until receiving a correct response. Usually the file includes all the trials: every row is a trial. I am trying to build an Audio-visual paired association test.
