QUEST staircase and psychometric function

Hello,

I am wanting to run a QUEST staircase, then fit a psychometric function to detain the 75, 50 and 25% detection thresholds. Has anyone done this? It will need to run in Psychopy and on Pavlovia? I am using a task where participants have to detect a tone in white noise and the QUEST dynamically changes the volume.

I have managed to get the quest working - I was just wondering if the QUEST in PsychoPy is consistent with this code that has been used from a different task outside of psychopy.```
var questlib = require(‘questlib’);

const tGuess = 0.5,
tGuessSd = 0.1,
pThreshold = 0.75,
beta = 3.5,
delta = 0.01,
gamma = 0.01,
grain = 0.001,
range = 20;

const q1 = new questlib.Quest(tGuess + 0.1, tGuessSd, pThreshold, beta, delta, gamma, grain, range);
const q2 = new questlib.Quest(tGuess - 0.1, tGuessSd, pThreshold, beta, delta, gamma, grain, range);

const tTest = q1.quantile();
q1.update(tTest, response);

const tTest2 = q2.quantile();
q2.update(tTest2, response2);

const intensities = questlib.ProcessQuestData(q1, q2).intensities;
const c25 = intensities.c25;


I've also had problems in detaining the thresholds with a psychometric function and wondered if anyone has done this on Psychopy or Pavlovia before?

Thanks