The experiment is mainly matrix patterns with dots that are shown to the participants, and they click the square it was in–which turns it black. I want to save the black squares at the end of the routine to the csv, but have started with just saving the clicked items. However, when ending the guessing routine, I get the following error:
TypeError: Converting circular structure to JSON → starting at object with constructor ‘PsychoJS’ | property ‘_logger’ → object with constructor ‘Logger’ — property ‘_psychoJS’ closes the circle
if ((trials_3.thisN === 0)) {
psychoJS.experiment.addData("Response1", responses);
}
If the experiment runs fine in Python (offline) I suspect that there is something wrong with the js translation of your for loop that precedes this statement. You could try manually writing the loop in js.