Index out of range error
Hello everyone,
In the experiment, I created two blocks as high loop and low loop. Here, those with an even number of participants start the experiment with a high loop (ie 6 photos around a circle), and participants with an odd number start with a low loop (ie 4 photos around a circle). they see these photos and then try to determine where the single photos are in the circle. I am getting a "list index out of range" error during the transition between blocks in the experiment, but I could not solve it. I would be very happy if you could take a look. I hope I was able to explain clearly.
https://drive.google.com/file/d/1SAFNRHKW8z1xCv6fgRcQcqUyaXYxIZ3b/view?usp=sharing
Thank you very much in advance.
Comments
Hi,
The experiment is a bit too complex to easily point you to the solution. If you look at the error message, you see that line 82 of the prep2_1 inlinescript is the culprit. You can try to print out the values for i and neutral1 to understand what is going on. I suppose the variable i is higher than what you would expect?
If you want more detailed help from me, please simplify your experiment. Fewer repetitions, fewer items, less complexity. Make it as simple as possible, while retaining the problem you need help with.
By the way, if I am not mistaken, your counterbalancing won't work at the moment. If the first loop is low, then the first high loop is skipped and the experiment is finishing. I suppose you meant to set the number of cycles of the outer loop to 2?
Eduard
I am really sorry for late reply. Thank you so much for your reply.