Re: [Numpy-discussion] range in numpy where

2009-01-22 Thread Eric Firing
Ross Williamson wrote: > Hi All > > I want to get out the index of values in an array. Normally WHERE > works fine for one conditional statement but it does not work for two > - i.e. > > a = array([0,1,2,3,4,5,6,7,8,9]) > > ind, = where(a > 5) > > Works fine but if I wanted: > > ind = wher

[Numpy-discussion] range in numpy where

2009-01-22 Thread Ross Williamson
Hi All I want to get out the index of values in an array. Normally WHERE works fine for one conditional statement but it does not work for two - i.e. a = array([0,1,2,3,4,5,6,7,8,9]) ind, = where(a > 5) Works fine but if I wanted: ind = where((a > 5) and (a<8)) Then it bugs out with the f