[Numpy-discussion] git tag for version 1.8?

2013-12-19 Thread Warren Weckesser
Is version 1.8.0 tagged in git? I see tags up to 1.7.1. I suspect the tagging convention has changed in the git repo. How do I checkout v1.8.0? Warren ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/

[Numpy-discussion] Scalar result for field access -- Fix in minor release?

2013-12-19 Thread Sebastian Berg
Hey, fixing a corner case indexing regression in 1.8, I noticed/fixed accidentally this behavior of returning a scalar when indexing a 0-d array with fields (see also [1]): arr = np.array((1,), dtype=[('a', 'f8')]) arr['a'] # Returns an array arr[['a']] # Currently returns a *scalar* I think

Re: [Numpy-discussion] Array search considering order

2013-12-19 Thread Andrei Rozanski
On Thu, Dec 19, 2013 at 01:51:30PM +, Oscar Benjamin wrote: > Date: Thu, 19 Dec 2013 13:51:30 + > From: Oscar Benjamin > To: Discussion of Numerical Python > Subject: Re: [Numpy-discussion] Array search considering order > > On 19 December 2013 12:51, rootspin wrote: > > Hello, > > > >

Re: [Numpy-discussion] Array search considering order

2013-12-19 Thread Oscar Benjamin
On 19 December 2013 12:51, rootspin wrote: > Hello, > > Need some help in searching arrays (Im new to numpy) > Is it possible to search a array, using another array considering > order/sequence? > > x = np.array([1,2,3,4,5,6], np.int32) > > y = np.array([1,4,3,2,6,5], np.int32) > > query= np.array

[Numpy-discussion] Array search considering order

2013-12-19 Thread rootspin
Hello, Need some help in searching arrays (Im new to numpy) Is it possible to search a array, using another array considering order/sequence? x = np.array([1,2,3,4,5,6], np.int32) y = np.array([1,4,3,2,6,5], np.int32) query= np.array([1,2,3],np.int32) x versus query True y versus query False