Trial data persists and it elludes me

W10 and PsychoPy 2024.2.1

I have a Stroop task and the conditions are fed by an xlsx file.
There are 84 trials and I want to give Ps a break midway through.
For convenience I put everything in one loop - see screenshot below:


When I test with 10 trials all works as intended.

The issue is in the data where I can see that I have two extra rows that hold the values of the last trial before the break (see screenshot below with red being the repetitive rows). I believe these are stored when the break_2 and get_ready routines run.

Why is this happening and any way I can mend it? I think, I used the same flow before and I don’t remember having this “artifact” but I may be wrong.
I attach the exp, conditions and image should you wish to test it.
conditions.xlsx (10.7 KB)


Stroop_Discourse.psyexp (53.9 KB)

Any pointers/help will be much appreciated.

Thanks

Some last notes:

  • The conditions file was given to me by the student I support
  • I can probaly overcome this by having two seperate loops, one before the break_2/get_ready and one after but I will need to code the conditions (to have everything randomised) and I prefer to avoid this.
  • I only found out about this when I wanted to implement a countdown time during the break and I saw all the extra rows (you can enable it by going to the stroop routine, open code_4 and set the value of enable_break to 10
  • trials_2 is set to sequential for testing purposes

Check that “is trials” is unticked for breakloop and ready_loop

1 Like

Argh - why I didn’t think about it. So many thanks Wake :pray: