I just realised there is an issue with my experiment: I have a loop which randomises trials, but in the middle of the trial I need to display an image so that participant are assigned to one of two conditions and perform a certain action accordingly.
Now, I just realised that this image is not displayed randomly - it is attached to the trial in the same row in excel, so even though psychopy can randomise trials within the loop, it does so across the whole row.
There have been a few similar posts on here but none of them offered solutions, so I’m asking for help. Here are my ideas so far, but I’m not sure how to implement them:
- create a new file for just that column - but I can’t tell psychopy to only choose 1 row and then not choose the same one later on
- Instead of using filename or variable path, combine the two, that is, when adding an image refer to “stimuli_list.xlsx/$image1” - but psychopy doesn’t seem to like this
- Code the routine using random() function - I don’t know whether I should refer to png files or stimulus image in psychopy or excel columns, either way not sure how to start the code.
Basically, any suggestions on how to randomise something other than location independently of the other variables specified in excel would be welcome, I’m happy to provide more information but didn’t want overload the post.