I´m using version 2021.2.3
In my experiment I present 24 videos and in the background there is either no music, fasgt music or slow music. So I have a excel file with two parameters (videostim, musicstim). I have no prior experience with PsychoPy or Python, so I would appreciate simple code solutions.
What I´ve tried:
I´ve created a code snippet based on the video from Jason Ozubko on how to randomize two lists of stimuli and also oriented on this forum post Import and display images and words from a mixted Excel file (images are not displayed) from Romane.
I applied the code to my experiment. (see screenshots below)
(Unfortunately the suggestion to look at the Demo for independent randomization didn´t help, because the python coding is to complicated for me to implement that in my experiment)
I can run the experiment on Psychopy without problems (there are 24 trials as wished) and the randomization almost works but there are always around 5 repetitions of pictures, eventhough all of the 24 pictures should appear just once.
Also in the Runner tab there is a error presented that might be the source of the problem (see below). I think it referes to the “import random” part in the JS section.
Is “import random” outdated or should it technically work? Or does someone know a easier way to do this?
It would be very much appreciated if someone could help me! Tank you!