Re: [Numpy-discussion] Visual Studio revamp: is anyone working on it ?

2008-06-09 Thread David Cournapeau
David Cournapeau wrote: > Hi, > > IIRC, Gary suggested to cut the complications by using vcvarsall.bat > instead of depending on the registry (which keeps changing between > versions). I have started working on that for my own project (because > scons does not work with VS 2008): it looks ea

[Numpy-discussion] Visual Studio revamp: is anyone working on it ?

2008-06-09 Thread David Cournapeau
Hi, IIRC, Gary suggested to cut the complications by using vcvarsall.bat instead of depending on the registry (which keeps changing between versions). I have started working on that for my own project (because scons does not work with VS 2008): it looks easy to at least prototype it, since

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Keith Goodman
On Mon, Jun 9, 2008 at 7:35 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 21:06, Keith Goodman <[EMAIL PROTECTED]> wrote: >> On Mon, Jun 9, 2008 at 4:45 PM, Robert Kern <[EMAIL PROTECTED]> wrote: >>> On Mon, Jun 9, 2008 at 18:34, Keith Goodman <[EMAIL PROTECTED]> wrote: D

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Pierre GM
On Monday 09 June 2008 22:30:09 Keith Goodman wrote: > On Mon, Jun 9, 2008 at 7:02 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > > There's a scipy.stats.mstats.rankdata() that take care of both ties and > > missing data. Missing data are allocated a rank of either 0 or the > > average rank, depending

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Robert Kern
On Mon, Jun 9, 2008 at 21:06, Keith Goodman <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 4:45 PM, Robert Kern <[EMAIL PROTECTED]> wrote: >> On Mon, Jun 9, 2008 at 18:34, Keith Goodman <[EMAIL PROTECTED]> wrote: >>> Does anyone have a function that converts ranks into a Gaussian? >>> >>> I ha

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Keith Goodman
On Mon, Jun 9, 2008 at 7:02 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > On Monday 09 June 2008 22:06:24 Keith Goodman wrote: >> On Mon, Jun 9, 2008 at 4:45 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > >> > There are subtleties in computing ranks when ties are involved. Take a >> > look at the implem

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Pierre GM
On Monday 09 June 2008 22:06:24 Keith Goodman wrote: > On Mon, Jun 9, 2008 at 4:45 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > > There are subtleties in computing ranks when ties are involved. Take a > > look at the implementation of scipy.stats.rankdata(). > > Good point. I had to deal with ties

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Keith Goodman
On Mon, Jun 9, 2008 at 4:45 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Mon, Jun 9, 2008 at 18:34, Keith Goodman <[EMAIL PROTECTED]> wrote: >> Does anyone have a function that converts ranks into a Gaussian? >> >> I have an array x: >> import numpy as np x = np.random.rand(5) >> >> I

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 7:07 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: >> You can run the test scripts from the source tree without installing >> them by using nosetests, like this: > > I am not enthusiastic about this change: it makes it harder for

Re: [Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Robert Kern
On Mon, Jun 9, 2008 at 18:34, Keith Goodman <[EMAIL PROTECTED]> wrote: > Does anyone have a function that converts ranks into a Gaussian? > > I have an array x: > >>> import numpy as np >>> x = np.random.rand(5) > > I rank it: > >>> x = x.argsort().argsort() >>> x_ranked = x.argsort().argsort() >>>

[Numpy-discussion] Coverting ranks to a Gaussian

2008-06-09 Thread Keith Goodman
Does anyone have a function that converts ranks into a Gaussian? I have an array x: >> import numpy as np >> x = np.random.rand(5) I rank it: >> x = x.argsort().argsort() >> x_ranked = x.argsort().argsort() >> x_ranked array([3, 1, 4, 2, 0]) I would like to convert the ranks to a Gaussian w

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Robert Kern
On Mon, Jun 9, 2008 at 18:07, Anne Archibald <[EMAIL PROTECTED]> wrote: > Then again, it doesn't usually work for me to use the boilerplate to > run a single test without installing, since the non-installed test > doesn't necessarily find all the non-installed code, sometimes falling > back on the

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Anne Archibald
2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: > On Sun, Jun 8, 2008 at 6:49 PM, Nathan Bell <[EMAIL PROTECTED]> wrote: >> On Sun, Jun 8, 2008 at 6:15 AM, Alan McIntyre <[EMAIL PROTECTED]> wrote: >>> Right now there's "if __name__ == '__main__'" boilerplate at the end >>> of every test module; nose ca

Re: [Numpy-discussion] numpy 1.1: import numpy fails in Debian

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 6:20 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi, > > I tried to package numpy 1.1 and upload it to Debian, all worked fine, > I installed the package and: > > In [1]: import numpy > --- > ImportErr

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Charles R Harris
On Mon, Jun 9, 2008 at 2:37 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/6/9 Charles R Harris <[EMAIL PROTECTED]>: > > > > On Mon, Jun 9, 2008 at 12:18 PM, Andrew Straw <[EMAIL PROTECTED]> > wrote: > >> > >> Charles R Harris wrote: > >> > Dear Friends, > >> > > >> > Our wonderful buil

Re: [Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread David Huard
2008/6/9 Tommy Grav <[EMAIL PROTECTED]>: > I understand this and agree, but it still means that the API for > histogram is > broken since normed can only be used with the new=True parameter. I > though > the whole point of the future warning was to avoid this. It is not a > big deal, > just means

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Stéfan van der Walt
2008/6/9 Charles R Harris <[EMAIL PROTECTED]>: > > On Mon, Jun 9, 2008 at 12:18 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: >> >> Charles R Harris wrote: >> > Dear Friends, >> > >> > Our wonderful buildbot is in declining health. The Mac can't update >> > from svn, Andrew's machines are offline, th

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Charles R Harris
On Mon, Jun 9, 2008 at 1:02 PM, Bruce Southey <[EMAIL PROTECTED]> wrote: > Alan McIntyre wrote: > > On Mon, Jun 9, 2008 at 12:16 PM, Charles R Harris > > <[EMAIL PROTECTED]> wrote: > > > >> Only Windows_xp_64 still functions, but for how long? We need your help! > >> > > > > What version of the MS

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Charles R Harris
On Mon, Jun 9, 2008 at 12:18 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > Dear Friends, > > > > Our wonderful buildbot is in declining health. The Mac can't update > > from svn, Andrew's machines are offline, the Sparcs have lost their > > spark, and bsd_64 is sufferin

[Numpy-discussion] problems building in cygwin under vmware

2008-06-09 Thread Chris Kees
Hi, I'm getting an assembler error "Error: suffix or operands invalid for `fnstsw'" while trying to build numpy on cygwin (running under windows XP running on vmware on a mac pro). I've tried the last two releases of numpy and the svn version. Has anybody ever seen this before? -Chris tai

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Bruce Southey
Alan McIntyre wrote: > On Mon, Jun 9, 2008 at 12:16 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > >> Only Windows_xp_64 still functions, but for how long? We need your help! >> > > What version of the MS compilers is needed for a Windows build? I've > got a WinXP machine that could b

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 12:16 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > Only Windows_xp_64 still functions, but for how long? We need your help! What version of the MS compilers is needed for a Windows build? I've got a WinXP machine that could be used as a buildbot as long as I don't have

Re: [Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Andrew Straw
Charles R Harris wrote: > Dear Friends, > > Our wonderful buildbot is in declining health. The Mac can't update > from svn, Andrew's machines are offline, the Sparcs have lost their > spark, and bsd_64 is suffering from tolist() syndrome: AFAIK, I don't have any machines on the buildbot... Is there

[Numpy-discussion] Buildbot dying horrible, slow death.

2008-06-09 Thread Charles R Harris
Dear Friends, Our wonderful buildbot is in declining health. The Mac can't update from svn, Andrew's machines are offline, the Sparcs have lost their spark, and bsd_64 is suffering from tolist() syndrome: == FAIL: Ticket #793, ch

Re: [Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread Tommy Grav
I understand this and agree, but it still means that the API for histogram is broken since normed can only be used with the new=True parameter. I though the whole point of the future warning was to avoid this. It is not a big deal, just means that one is forced to use the new API somewhat qui

Re: [Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread Pauli Virtanen
ma, 2008-06-09 kello 11:11 -0400, Tommy Grav kirjoitti: > With the most recent change in numpy 1.1 it seems that numpy.histogram > was broken when wanting a normalized histogram. I thought the idea was > to leave the functionality of histogram as it was in 1.1 and then > break the api in 1.2? [clip

[Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread Tommy Grav
With the most recent change in numpy 1.1 it seems that numpy.histogram was broken when wanting a normalized histogram. I thought the idea was to leave the functionality of histogram as it was in 1.1 and then break the api in 1.2? import numpy a = [0,1,2,3,4,5,6,7,8] numpy.histogram(a) /Library/F

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 10:47 AM, Matthew Brett <[EMAIL PROTECTED]> wrote: > I am sure you know this already, but you can just replace the tests > using ParametricTestCase with a nose test generator. Thanks for pointing that out; it's a rather cool feature. :) __

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 10:43 AM, Andrew Straw <[EMAIL PROTECTED]> wrote: > I'm using it in some of my code, but I'll happily switch to nose. It > will make my life easier, however, if I can see how you've converted it. > If you do this, can you indicate what svn revision made the switch? Certainly

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Matthew Brett
Hi, I am sure you know this already, but you can just replace the tests using ParametricTestCase with a nose test generator. See: http://www.scipy.org/scipy/scipy/wiki/TestingGuidelines under Parametric tests. Best, Matthew On Mon, Jun 9, 2008 at 3:37 PM, Alan McIntyre <[EMAIL PROTECTED]> wr

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Andrew Straw
Alan McIntyre wrote: > On Mon, Jun 9, 2008 at 3:41 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > >> I suggest we also remove ParametricTestCase now. >> > > I don't mind converting the existing uses (looks like it's only used 5 > times) to something else, it was causing trouble for me

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 3:41 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > I suggest we also remove ParametricTestCase now. I don't mind converting the existing uses (looks like it's only used 5 times) to something else, it was causing trouble for me with nose anyway--whenever the test modul

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Stéfan van der Walt
2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: > Right now there's "if __name__ == '__main__'" boilerplate at the end > of every test module; nose can find and run tests without that being > there. I wanted to get the list's take on removing that--it just > means that if you want to run the tests in

Re: [Numpy-discussion] Installation info

2008-06-09 Thread Hanni Ali
Hi Robert, Attached is the complete output, below is what I believe is the relevant area of interest: compiling C sources creating build\temp.win-amd64-2.6\Release\build creating build\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6 creating build\temp.win-amd64-2.6\Release\build\src.win-amd64

Re: [Numpy-discussion] Installation info

2008-06-09 Thread Hanni Ali
I have used the trail of Visual Studio 2008 (on full Server 2003) it copmiles and runs well if you comment out the lines meantioned earlier on in this thread. I am planning to spend some time with the intel fortran compiler to try to compile blas/lapack in the next few weeks. It is part of my curr