| Reference | Downloads | Github

Conditions file parameters missing from data files using Pavlovia

Hello! This is my first time using the forum in any capacity. Please let me know if there is a better sub-forum or format for my issue.

OS: Win 10
PsychoPy version: 3.1.2
Standard Standalone : Y

What are you trying to achieve?:
I’m trying to make sure condition file parameters are recorded in the data files.

What did you try to make it work?:
Ran the program through Psychopy locally and the condition file parameters as well as participant response time and accuracy (keyboard) are recorded in data set. Stimuli appear as indexed via the condition file as well.

What specifically went wrong when you tried that?:
The same program, when run through Pavlovia, does not record the condition file parameters but does record participant response time and accuracy. Accuracy is determined by the condition file and the stimuli would not appear without the program reading the file.

Hi dey.a,

This is a recent issue that the Psychopy/psychoJS developers are working on resolving. There is a hack solution to record your condition file parameters that I reference here.

Until the problem is resolved, you need to put in code manually at the end of the routine within the trial loop to record those trial parameters. You can use a code component for this in the Builder interface or put it into your javascript file after it’s been created. If your TrialHandler object is called trials and you want to record the displayed stimulus via its parameter stim_id, then you would put this code at the end of the routine:

psychoJS.experiment.addData("stim_id", trials.trialList[trials.thisIndex]["stim_id"]);

Hi kevinhroberts,

Thank you for your response and link to the other thread. Manually adding the parameters to the log after the routine seems to be working!