Re: [Numpy-discussion] Test failures on Windows XP 64-bit

2012-07-24 Thread Ralf Gommers
On Wed, Jul 25, 2012 at 3:03 AM, Ondřej Čertík wrote: > Hi, > > I've created a Windows installer of the maintenance/1.7.x branch > (commit f93774d), the binary is available here (created in Wine on > linux): > > > https://github.com/certik/numpy-vendor/blob/69555c40dff5ae9f2d27d827f283bc6d9c53fccf

Re: [Numpy-discussion] Github notifications and trac-to-github migration

2012-07-24 Thread Fernando Perez
Hi Thouis, On Tue, Jul 24, 2012 at 2:46 PM, Thouis (Ray) Jones wrote: > I would estimate I'm between a fourth and halfway through the > implementation of the trac-to-github-issues migration code. The work > lives in at https://github.com/thouis/numpy-trac-migration mmh, I would have thought you

Re: [Numpy-discussion] np.unique for one bi-dimensional array

2012-07-24 Thread Val Kalatsky
There are various ways to repack the pair of arrays into one array. The most universal is probably to use structured array (can repack more than a pair): x = np.array(zip(a, b), dtype=[('a',int), ('b',int)]) After repacking you can use unique and other numpy methods: xu = np.unique(x) zip(xu['a'

[Numpy-discussion] Test failures on Windows XP 64-bit

2012-07-24 Thread Ondřej Čertík
Hi, I've created a Windows installer of the maintenance/1.7.x branch (commit f93774d), the binary is available here (created in Wine on linux): https://github.com/certik/numpy-vendor/blob/69555c40dff5ae9f2d27d827f283bc6d9c53fccf/test/ and when I install it on the Windows XP 64-bit machine, here

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
On Tue, Jul 24, 2012 at 5:38 PM, Ondřej Čertík wrote: > Possible conclusion: > > I think I know what is going on. I use > > $ wine --version > wine-1.3.28 > > and it installs (by default) the following msvcr libraries: > > > $ ls ~/.wine/drive_c/windows/winsxs/ > manifests > Policies > x86_microso

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
Possible conclusion: I think I know what is going on. I use $ wine --version wine-1.3.28 and it installs (by default) the following msvcr libraries: $ ls ~/.wine/drive_c/windows/winsxs/ manifests Policies x86_microsoft.msxml2_6bd6b9abf345378f_4.1.0.0_none_deadbeef x86_microsoft.vc80.crt_1fc8b3

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
On Tue, Jul 24, 2012 at 5:04 PM, Ondřej Čertík wrote: > On Tue, Jul 24, 2012 at 3:58 PM, Ondřej Čertík > wrote: >> Ralf, >> David, what version of binutils do you use? I use 2.17.50 (https://github.com/certik/numpy-vendor) and maybe that's the problem, that the objdump from there

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
On Tue, Jul 24, 2012 at 3:58 PM, Ondřej Čertík wrote: > Ralf, > >>> David, what version of binutils do you use? >>> I use 2.17.50 (https://github.com/certik/numpy-vendor) >>> and maybe that's the problem, that the objdump from there >>> can't read the msvcr library. >>> >>> I use gcc 3.4.5. What e

Re: [Numpy-discussion] np.unique for one bi-dimensional array

2012-07-24 Thread eat
Hi, On Wed, Jul 25, 2012 at 1:09 AM, Giuseppe Amatulli < giuseppe.amatu...@gmail.com> wrote: > Hi, > > would like to identify unique pairs of numbers in two arrays o in one > bi-dimensional array, and count the observation > > a_clean=array([4,4,5,4,4,4]) > b_clean=array([3,5,4,4,3,4]) > > and ob

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
Ralf, >> David, what version of binutils do you use? >> I use 2.17.50 (https://github.com/certik/numpy-vendor) >> and maybe that's the problem, that the objdump from there >> can't read the msvcr library. >> >> I use gcc 3.4.5. What exact version do you use in wine? >> > > I have gcc 3.4.5 and bin

[Numpy-discussion] np.unique for one bi-dimensional array

2012-07-24 Thread Giuseppe Amatulli
Hi, would like to identify unique pairs of numbers in two arrays o in one bi-dimensional array, and count the observation a_clean=array([4,4,5,4,4,4]) b_clean=array([3,5,4,4,3,4]) and obtain (4,3,2) (4,5,1) (5,4,1) (4,4,2) I solved with tow loops but off course there will be a fast solution Any

[Numpy-discussion] Github notifications and trac-to-github migration

2012-07-24 Thread Thouis (Ray) Jones
Hello, I would estimate I'm between a fourth and halfway through the implementation of the trac-to-github-issues migration code. The work lives in at https://github.com/thouis/numpy-trac-migration , though without a copy of the trac DB, it's not really possible to experiment with it. I haven't i

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ralf Gommers
On Tue, Jul 24, 2012 at 5:14 PM, Ondřej Čertík wrote: > On Fri, Jul 20, 2012 at 11:51 AM, David Cournapeau > wrote: > > On Thu, Jul 19, 2012 at 4:58 PM, Ondřej Čertík > wrote: > > > >> > >> So I have tried the MinGW-5.0.3.exe in Wine, but it tries to install > >> from some wrong url and it fails

Re: [Numpy-discussion] Finished maintenance/1.7.x branch

2012-07-24 Thread Ondřej Čertík
On Fri, Jul 20, 2012 at 7:58 AM, David Cournapeau wrote: > On Fri, Jul 20, 2012 at 1:50 PM, Ondřej Čertík > wrote: >> On Wed, Jul 18, 2012 at 8:09 AM, Travis Oliphant wrote: >>> >>> Hey all, >>> >>> We are going to work on a beta release on the 1.7.x branch.The master >>> is open again for

Re: [Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray

2012-07-24 Thread Ondřej Čertík
On Fri, Jul 20, 2012 at 11:51 AM, David Cournapeau wrote: > On Thu, Jul 19, 2012 at 4:58 PM, Ondřej Čertík > wrote: > >> >> So I have tried the MinGW-5.0.3.exe in Wine, but it tries to install >> from some wrong url and it fails to install. >> I have unpacked the tarballs by hand into "~/.wine/d

Re: [Numpy-discussion] building a numpy egg for centos

2012-07-24 Thread Jason Stelzer
On Tue, Jul 24, 2012 at 10:06 AM, Robert Kern wrote: > This was an explicit design choice. numpy.distutils will never import > setuptools for you even if you have it installed. It will simply > integrate with it if you have run the setup.py script from something > that has setuptools imported, lik

Re: [Numpy-discussion] building a numpy egg for centos

2012-07-24 Thread Robert Kern
On Tue, Jul 24, 2012 at 3:00 PM, Jason Stelzer wrote: > I'm building numpy 1.6.2 for python 2.5 on centos 5.8. > > I ran into a problem where bdist_egg was not working. It seems there's > a minor bug in numpy/distutils/core.py > > Under python 2.5 the check for setuptools does not work, so the bdi

[Numpy-discussion] building a numpy egg for centos

2012-07-24 Thread Jason Stelzer
I'm building numpy 1.6.2 for python 2.5 on centos 5.8. I ran into a problem where bdist_egg was not working. It seems there's a minor bug in numpy/distutils/core.py Under python 2.5 the check for setuptools does not work, so the bdist target for eggs is not available. I've attached a patch that