psychopy.org | Reference | Downloads | Github

Issues with staircasing with QuestHandler

Hi! I’m new to psychopy, and trying to set up the Quest staircasing procedure. The intensity values aren’t changing from my startVal. I set response_correct = 1 for debugging purposes, trying to get the intensity values to change. Here’s an abbreviated version of my code:

startVal = 0.90
startValSd = 0.20
pThreshold = 0.63
nTrials = 20
gamma = 0.01
minVal = 0.7
maxVal = 1.0
staircase = data.QuestHandler(startVal, startValSd, pThreshold, nTrials, gamma, minVal, maxVal)
for thisContrast in staircase:
   print("thisContrast ", thisContrast)
   response_correct = 1
   print("staircase._questNextIntensity", staircase._questNextIntensity)
   staircase.addResponse(response_correct)
   print("staircase._questNextIntensity", staircase._questNextIntensity)
   print("intensities ", staircase.intensities)

and the values that I’m printing:

('thisContrast ', 0.9)
('staircase._questNextIntensity', 0.9)
('staircase._questNextIntensity', 0.9)
('intensities ', [0.9])
('thisContrast ', 0.9)
('staircase._questNextIntensity', 0.9)
('staircase._questNextIntensity', 0.9)
('intensities ', [0.9, 0.9])

etc.

Does anyone have some insight? I would very much appreciate some help.