Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

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

  • edited June 8

    Hi Anna,

    It looks like you created a list of elements in an inline_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_loop item.



    I hope this makes sense.


    Alternatively, you could attach your experiment and we can have a closer look at it.


    Best,


    Lotje

    Thanked by 1Anna2612
  • Hi Lotje,


    thank you for your quick response. This helped a lot! The experiment is running now.


    Best,

    Anna

Sign In or Register to comment.