4215: quitPsychoJS needs to be returned

Synopsis

The quitPsychoJS function needs to be preceeded by return, otherwise data will not be saved

Details

In PsychoJS, each part of your experiment is inside of a function, and the values returned by these functions tell PsychoJS how to proceed once each one is done. Calling quitPsychoJS will end your experiment, but if the function you’re in doesn’t return anything then PsychoJS doesn’t know to save your data.

PsychoPy versions affected

All versions.

Solutions

Instead of calling quitPsychoJS(), you need to call return quitPsychoJS().


Back to top