I am conducting a simple experiment where I present pairs of images and ask participants to choose between them. There are two types of images. And I want to randomize their positions. So I use the shuffle function. I also need to save the data on my image positions (otherwise I will not know which image was chosen). So I make a code component on the top of my routine. Begin routine looks like that:
positions = [[-0.5, 0], [0.5, 0]] shuffle(positions) thisExp.addData("positions", positions)
The experiment runs with no errors, images positions are randomized. But in the data xlsx file I cannot find a column with positions data. What am I doing wrong?
I tried to replace the line “thisExp.addData(“positions”, positions)”
to the End routine - but it is not working.
This data is saved in log file, however. But I need to save it in xlsx file.