Hey,
I want to program an RSVP experiment.
Within a trial I want to display 15 stimuli, of which 13 Non-Words and 2 Words (targets).
Each 100ms I want to display a new stimuli in the window. The Words (targets) will always be 300ms separated from each other, so 3 non words in between them.
The code fails at showing the stimuli on my screen.
I get the message:
NonWords[0:4].draw()
AttributeError: 'list' object has no attribute 'draw'
I have looked at multiple pages of how I can make this work but I do not find the right solution. So any suggestion that will make this work in the script is welcome.
This is the current code I use when I get the error-message.
The words and non-words I use come from an excel file. that I uploaded with “infile()”.
# display the first stimuli
NonWords[0:4].draw()
win.flip()
core.wait(0.1)
# draw the stimulus T1
EmoWords[0].draw()
win.flip()
core.wait(0.1)
#display distractors
NonWords[5:7].draw()
win.flip()
core.wait(0.1)
#display T2
EmoWords[1].draw()
win.flip()
core.wait(0.1)
#display end stimuli
NonWords[8:12].draw()
win.flip()
core.wait(0.1)
I have also included the full script and the excel file I use.
word-list.xlsx (9.2 KB) AB Cogantes.py (7.1 KB)
Thanks in advance!
Laurence