NoiseStim not working
Hello all,
I'm trying to create a coarse noise patch in OpenSesame using psychopy's
NoiseStim function. However, when I try to run it, using the code below, I get the error: 'module' object has no attribute 'NoiseStim'. Is NoiseStim somehow not supported in OpenSesame, or am I missing something else? Is there a nice alternative function that I could use?
Best,
Jasper
from psychopy import visual, event, core, monitors
noise1 = visual.NoiseStim(win, units='pix', mask='circle', ori=1.0, pos=(0, 0), size=(512, 512), sf=None, phase=0, color='white', opacity=1, blendmode='add', contrast=1.0, texRes=512, imageComponent='Phase', noiseType='Gabor', noiseElementSize=4, noiseBaseSf=32.0/512, noiseBW=1.0, noiseBWO=30, noiseFractalPower=-1, noiseFilterLower=3/512, noiseFilterUpper=8.0/512.0, noiseFilterOrder=3.0, noiseClip=3.0, filter=False, interpolate=False, depth=-1.0)
noise1.show()
win.flip()
event.waitKeys(keyList = ['space'])
Comments
Hi Jasper,
This is not about whether Opensesame supports noise stim or not, but whether the version of Psychopy that is installed has this feature included. (When you import Psychopy and create a window like that, you bypass Opensesame's canvasses). I think Opensesame's default Psychopy version is 1.85, NoiseStim was introduced with 1.90. Therefore, upgrading psychopy should do the trick (see here how to: https://osdoc.cogsci.nl/3.2/manual/environment/
Eduard
That seems doable ;)
Thank you!