Can't find the Error (nReps)

hi!
I’m new in Psychopy’s Experiments.

Can someone help me find this error?
image
errorfind1

When are you setting nReps? It looks like the value comes from a loop itself.

Does max_training_and_testing have a value at the point training_and_testing starts? It looks like it would need to be a nested loop for that to happen.