Thanks for your answer!
Yes I had watched the video before and tried it like that.
Now I succeded in actually displaying one of the arrow using the extended stroop task.
To change them randomly I inserted $arrow in the image column under image properties.
Sadly now two other problems came up. First, under image properties -> advanced-> color it says $[1,1,1], therefore I get a white picture and not the picture I actually want displayed.
If I just leave the column empty I get this error message:
Running: C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\stroop_lastrun.py
pyo version 0.8.0 (uses single precision)
C:\Program Files (x86)\PsychoPy2\lib\site-packages\openpyxl\reader\worksheet.py:322: UserWarning: Unknown extension is not supported and will be removed
warn(msg)
Traceback (most recent call last):
File “C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\stroop_lastrun.py”, line 287, in
win.flip()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\window.py”, line 569, in flip
thisStim.draw()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\image.py”, line 247, in draw
self.contrast)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\basevisual.py”, line 433, in _getDesiredRGB
desiredRGB = (rgb * contrast + 1) / 2.0
TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘float’
Is there something I can insert so Psychopy just displays the picture? I inserted $None but still get:
Running: C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\stroop_lastrun.py
pyo version 0.8.0 (uses single precision)
C:\Program Files (x86)\PsychoPy2\lib\site-packages\openpyxl\reader\worksheet.py:322: UserWarning: Unknown extension is not supported and will be removed
warn(msg)
Traceback (most recent call last):
File “C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\stroop_lastrun.py”, line 287, in
win.flip()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\window.py”, line 569, in flip
thisStim.draw()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\image.py”, line 247, in draw
self.contrast)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\basevisual.py”, line 433, in _getDesiredRGB
desiredRGB = (rgb * contrast + 1) / 2.0
TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘float’
Or is the problem something else?
The second problem which arises when I just leave $[1,1,1] for the advanced color I get an error message that he can not find some of the pictures. With others it works fine (just that the picture is displayed as completely white) but it stops working as soon as the experiment tries to call on one of the not working picture. But since they are all in the same folder and I already checked the names I don’t get the problem.
The error message I get is:
18.2117 ERROR Couldn’t find image file ‘downB’; check path?
C:\Program Files (x86)\PsychoPy2\lib\site-packages\openpyxl\reader\worksheet.py:322: UserWarning: Unknown extension is not supported and will be removed
warn(msg)
Traceback (most recent call last):
File “C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\stroop_lastrun.py”, line 225, in
image.setImage(arrow)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\image.py”, line 289, in setImage
setAttribute(self, ‘image’, value, log)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\tools\attributetools.py”, line 137, in setAttribute
setattr(self, attrib, value)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\tools\attributetools.py”, line 27, in set
newValue = self.func(obj, value)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\image.py”, line 276, in image
forcePOW2=False)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\visual\basevisual.py”, line 790, in _createTexture
raise OSError, msg % (tex, os.path.abspath(tex))
OSError: Couldn’t find image ‘downB’; check path? (tried: C:\Users\Johanna\Documents\Uni\Bachelorarbeit\Inhibition\downB)
Does someone get what I did wrong and how I can solve this?