Question about an error while executing inline script
Hello,
I have a question regarding an error in my OpenSesame experiment.
My experiment runs through, but in the end it stops and shows me an error message. I can’t figure out what the problem is and what I should change to get the experiment to run until the end.
I’m sending you a screenshot of my error message and hope that you can help me with this.
Thank you very much!
Anna
Comments
Hi Anna,
It looks like you created a
listof elements in aninline_script(called Listpop). For each trial, one element is "popped" from that list. You probably have more trials than there are elements in the list, so the list is empty before you get to the last trials.So the first thing would be to compare the length of the list you are popping from
print len(my_list)with the number of trials in your
block_loopitem.I hope this makes sense.
Alternatively, you could attach your experiment and we can have a closer look at it.
Best,
Lotje
Did you like my answer? Feel free to

Hi Lotje,
thank you for your quick response. This helped a lot! The experiment is running now.
Best,
Anna