Stimulus Index Problem

79 views
Skip to first unread message

Radwa Khalil

unread,
Mar 9, 2014, 2:12:24 PM3/9/14
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.

Best regards,
Radwa
HippoInput_avg0 .py

Dan Goodman

unread,
Mar 9, 2014, 6:26:23 PM3/9/14
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)?

Dan
> --
> You received this message because you are subscribed to the Google
> Groups "Brian" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to briansupport...@googlegroups.com
> <mailto:briansupport...@googlegroups.com>.
> To post to this group, send email to brians...@googlegroups.com
> <mailto:brians...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/briansupport.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages