[Numpy-discussion] indexes in an array where value is greater than 1?

Chris Withers chris at simplistix.co.uk
Sun May 27 04:19:19 EDT 2012


On 25/05/2012 16:21, Benjamin Root wrote:
>
> np.nonzero(arrrgh > 1)

Did you mean np.where(arrrgh > 1)?
I didn't know you could use np.nonzero in the way your describe?

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk



More information about the NumPy-Discussion mailing list