Experiment stops before routine

Hi there, I’m trying to build an experiment (using builder only, not very confident with coding) and as I run it, it passes the first image routine but stops right before the second. I’m using loops with all of my routines and I’ve checked that they are properly linked to their respective .xlsx files.

This is what it says when it stops:

Traceback (most recent call last):
File “D:\UWE\Linguistic relativity study\Skeleton\gs_exp_e_v1-9-master\V1.9_E_lastrun.py”, line 1451, in
exec(’{} = thisExperimentLoop[paramName]’.format(paramName))
File “”, line 1
class = thisExperimentLoop[paramName]
SyntaxError: invalid syntax

Experiment ended.

Thanks in advance!

Is there anything odd about your loop names? Do they duplicate any other components or variables?

1 Like

It looks like you’ve named something class - this is a reserved keyword in Python, so you can’t use it as a variable name.

1 Like

Bingo!! Thank you so much. One of my parameters was named “class”. Didn’t realise it was a reserved keyword :grimacing:

Looks like one of my parameters used a reserved keyword :grinning_face_with_smiling_eyes: . Thank you!