Counterbalancing type of feedback without conditions file

Hello! I have a basic reinforcement learning task in which participants see feedback based on their response. I would like to counterbalance this condition: for some participants, indoor is always correct while outdoor is always incorrect, and vice versa. I’m currently reading in these images using the glob function:

allCORRpic=glob(‘stim/FBstim/w*.jpg’)
shuffle(allCORRpic)
allINCORRpic=glob(‘stim/FBstim/k*.jpg’)
shuffle(allINCORRpic)

where all indoor image files begin with ‘w’ and outdoor scenes begin with ‘k’ (in the above condition, I hard coded indoor to always be correct and outdoor to always be incorrect.

So far, I have set up the GUI as follows:

scene = expInfo[‘scene’]
sceneType = {
‘indoor’: ‘fbStim/w*’+str(scene[1])+‘.jpg’,
‘outdoor’: ‘fbStim/k*’+str(scene[0])+‘.jpg’}

where ideally, scene: “10” would have indoor = correct and outdoor = incorrect, and scene: “01” would have outdoor = correct and indoor = incorrect.

I have also tried the following, but the task crashes without outputting an error message:

if sceneType == indoor:
allCORRpic=glob(‘stim/FBstim/w*.jpg’)
shuffle(allCORRpic)
allINCORRpic=glob(‘stim/FBstim/k*.jpg’)
shuffle(allINCORRpic)
elif sceneType == outdoor:
allCORRpic=glob(‘stim/FBstim/k*.jpg’)
shuffle(allCORRpic)
allINCORRpic=glob(‘stim/FBstim/w*.jpg’)
shuffle(allINCORRpic)

I’d appreciate any insight as to how to fix this, thanks!