You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Brian
Dear Brian Developers,
I had Unpredicted problem with stimulus index and I do not understand where this problem comes from. When I run my script, I get the following error <, line 102, in <module>
a = Stimuli[StimulusIndex,:]
IndexError: index 16 is out of bounds for axis 0 with size 16>. I also, had attached The code so that you can help me to track this error.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to brians...@googlegroups.com
Hi Radwa,
We would prefer if this list were restricted to Brian-specific problems
rather than general programming problems.
In this case, the problem is simply that your nTrials = 157, and in the
case i>=109 you set StimulusIndex=i-109 so when i>=125 then
StimulusIndex>=16 which is larger than that dimension of the array
Stimuli. You might want to set nTrials=126 (=109+16)?