Re: [Numpy-discussion] Find index of repeated numbers in array

2008-12-10 Thread Ross Williamson
Thanks all I was being dumb and forgot to initialize as array() Cheers Ross On Dec 10, 2008, at 11:47 AM, Sturla Molden wrote: > On 12/10/2008 5:38 PM, Ross Williamson wrote: >> Hi Everyone >> >> I think I'm missing something really obvious but what I would like to >> do is extract the indexes

Re: [Numpy-discussion] Find index of repeated numbers in array

2008-12-10 Thread Sturla Molden
On 12/10/2008 5:38 PM, Ross Williamson wrote: > Hi Everyone > > I think I'm missing something really obvious but what I would like to > do is extract the indexes from an array where a number matches - For > example > > data = [0,1,2,960,5,6,960,7] > > I would like to know, for example the in

Re: [Numpy-discussion] Find index of repeated numbers in array

2008-12-10 Thread Nils Wagner
On Wed, 10 Dec 2008 11:38:11 -0500 Ross Williamson <[EMAIL PROTECTED]> wrote: > Hi Everyone > > I think I'm missing something really obvious but what I >would like to > do is extract the indexes from an array where a number >matches - For > example > > data = [0,1,2,960,5,6,960,7] > > I

Re: [Numpy-discussion] Find index of repeated numbers in array

2008-12-10 Thread Robert Cimrman
Ross Williamson wrote: > Hi Everyone > > I think I'm missing something really obvious but what I would like to > do is extract the indexes from an array where a number matches - For > example > > data = [0,1,2,960,5,6,960,7] > > I would like to know, for example the indices which match 960 -

[Numpy-discussion] Find index of repeated numbers in array

2008-12-10 Thread Ross Williamson
Hi Everyone I think I'm missing something really obvious but what I would like to do is extract the indexes from an array where a number matches - For example data = [0,1,2,960,5,6,960,7] I would like to know, for example the indices which match 960 - i.e. it would return 3 and 6 I could