I am trying to run a 2AFC staircase procedure. I have pre-generated images with different levels of scrambling put as a number in the image name (higher number - more scrambled). The code below works for the step (up & down) sizes but completely ignores the min and max values. So, for example when it gets to level 1 instead of stopping the procedure it looks for level 0, which doesn’t exist and the procedure quits.
“IOError: Couldn’t find image C:\Python Code\CandyCrush\stimuli\scrambleppt0\i29_t3_L00.jpg; check path?”
Any suggestions why this might be happening?
# create the staircase handler stairCase = data.StairHandler(startVal= 10, stepType= 'lin', stepSizes=[-8,-4,-2,-1], minVal = 1, maxVal = 39, nUp = 3, nDown = 1, nReversals = 8, nTrials=40)