Items from previous loop are displayed in the current loop

OS: Windows 11
PsychoPy version (e.g. 1.84.x): PsychoPy 2024.1.5
Standard Standalone? (y/n) : y
What are you trying to achieve?: looping

What did you try to make it work?:
I have an old experiment file (made using the Builder from an older Psychopy) which I am trying to rerun. I have 3 loops with the same structure with the first two being practice loops. These three loops have separate conditions files (mouse_practice.xlsx, pratice.xlsx, and expt_stim - Sheet1.csv respectively). When I run the experiment, the first 2 loops seem to run properly but the third loop shows the last item from the second loop, repeats it multiple times before showing the items which are for that loop (from expt_stim - Sheet1.csv file).

I tried the following things:

  1. I thought the conditions file for the third loop was corrupted. I made another, this time in .csv. Same issue persisted.
  2. I made a separate loop for the third loop (earlier I was using the same loop structure for all three). No luck.
  3. At some point, in the third loop’s dialog box, it was showing 999 conditions (when I have only 18 rows). When I switched to a .csv file, that went away.
    image

You can see the project here: Revati / RMT_new1 · GitLab
Any insights?

Hello

I had a look at your csv-file. What column separator did you use? Tab? I do not see any. I selected copied & pasted the relevant part of your xlsx-file to a new xlsx-file and used it as a condition file. Then it showed only 18 rows (conditions).

Mappe1.xlsx (12.5 KB)

Best wishes Jens

That worked! Thanks Jens