Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-30 Thread josef . pktd
On Wed, May 30, 2012 at 5:55 PM, Ralf Gommers wrote: > > > On Wed, May 30, 2012 at 5:39 PM, Charles R Harris > wrote: >> >> >> >> On Wed, May 30, 2012 at 4:59 AM, Nathaniel Smith wrote: >>> >>> On Tue, May 29, 2012 at 7:42 PM, Charles R Harris >>> wrote: >>> > >>> > >>> > On Mon, May 28, 2012 a

Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-30 Thread Ralf Gommers
On Wed, May 30, 2012 at 5:39 PM, Charles R Harris wrote: > > > On Wed, May 30, 2012 at 4:59 AM, Nathaniel Smith wrote: > >> On Tue, May 29, 2012 at 7:42 PM, Charles R Harris >> wrote: >> > >> > >> > On Mon, May 28, 2012 at 9:18 PM, wrote: >> >> >> >> >> >> >> https://github.com/numpy/numpy/com

Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-30 Thread Charles R Harris
On Wed, May 30, 2012 at 4:59 AM, Nathaniel Smith wrote: > On Tue, May 29, 2012 at 7:42 PM, Charles R Harris > wrote: > > > > > > On Mon, May 28, 2012 at 9:18 PM, wrote: > >> > >> > >> > https://github.com/numpy/numpy/commit/74b9f5eef8fac643bf9012dbb2ac6b4b19f46892 > >> broke return_inverse for

Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-30 Thread Nathaniel Smith
On Tue, May 29, 2012 at 7:42 PM, Charles R Harris wrote: > > > On Mon, May 28, 2012 at 9:18 PM, wrote: >> >> >> https://github.com/numpy/numpy/commit/74b9f5eef8fac643bf9012dbb2ac6b4b19f46892 >> broke return_inverse for structured arrays, because of the use of >> mergesort >> >> I'm using structur

Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-29 Thread Charles R Harris
On Mon, May 28, 2012 at 9:18 PM, wrote: > > https://github.com/numpy/numpy/commit/74b9f5eef8fac643bf9012dbb2ac6b4b19f46892 > broke return_inverse for structured arrays, because of the use of mergesort > > I'm using structured dtypes to get uniques and return_inverse by rows > > >>> groups = np.ra

[Numpy-discussion] 1.6.2 no more unique for rows

2012-05-28 Thread josef . pktd
https://github.com/numpy/numpy/commit/74b9f5eef8fac643bf9012dbb2ac6b4b19f46892 broke return_inverse for structured arrays, because of the use of mergesort I'm using structured dtypes to get uniques and return_inverse by rows >>> groups = np.random.randint(0,4,size=(10,2)) >>> groups_ = groups.vie