Hello,
I am currently trying to get a Psychopy script to run. The task starts normally, but then errors once I go past the screen: ‘Waiting for the scanner…’.
I get this error:
File "/Users/johnsonad13/Downloads/FMRI_ONLY_WebSurf/Pre-Test_lastrun.py", line 554, in <module>
exec(paramName + '= thisTrial.' + paramName)
File "<string>", line 1, in <module>
AttributeError: 'collections.OrderedDict' object has no attribute 'Animal_VidPT'
For this line of code:
if thisTrial != None:
for paramName in thisTrial.keys():
exec(paramName + '= thisTrial.' + paramName)
print(thisTrial)
After coming across this post, I changed exec(paramName + '= thisTrial.'
to exec('{} = thisTrial[paramName]'.format(paramName))
. Now, I’m getting this error:
File "/Users/johnsonad13/Downloads/FMRI_ONLY_WebSurf/Pre-Test_lastrun.py", line 575, in <module>
filename=thisTrial.Animal_VidPT,
AttributeError: 'collections.OrderedDict' object has no attribute 'Animal_VidPT'
for this line of code:
filename=thisTrial.Animal_VidPT,
Here is the script:
MRI_WebSurf_FINAL-NoPractice_4BLOCKS.py (979.4 KB)
Any help would be greatly appreciated. Thanks