Problem: my experiment ends after a loop but I want to continue

OS : Win10
PsychoPy version :2020.2.5
Standard Standalone? Yes
What are you trying to achieve?:

Continue the experiment after finish a loop.

I have written this in the End Rutine part:

score.append(key_resp_2.corr)
scorr+=key_resp_2.corr
thisExp.addData(‘Score’,score)
if (average(score) >= 0.95 and scorr >= 10):
trial.finished = True

I don’t know how to force the program to continue with the experiment.

Thanks for the help!

Hi,

Do you have any errors in the stdout part of your runner view?

Thanks,
Becca

Hi!

The problem was in the code. I’m a completely newbie with Python. Sorry.

My loop is called “trial_test” so I have to write “trial_test.finished= True” not “trial.finished = True”.

Thanks for asking,

J

no worries - pleased you found a solution :slight_smile:

1 Like