Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Travis Oliphant
Documentation helps are always welcome. Please make sure to advertise widely, though, that the new Polynomial class changes the ordering convention of the coefficients away from the Matlab standard. I think this will be a point of confusion unless it is carefully documented. It's also why

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-20 Thread Tim Cera
> > Are you thinking only about documentation in .rst files (like the > tutorials), or also the docstrings themselves? The former may be feasible, > the latter I think will be difficult. > > Everything. Within the documentation editor the RST docstrings are parsed from the functions, so instead of

Re: [Numpy-discussion] Separating out the maskna code

2012-05-20 Thread Nathaniel Smith
On Sun, May 20, 2012 at 6:59 PM, Nathaniel Smith wrote: >> I have not reviewed it in detail, but in general I would be very supportive >> of your plan to commit this to master, make a 1.7 release (without the >> ReduceWrapper) function and then work on the masked array / ndarray >> separation p

Re: [Numpy-discussion] Separating out the maskna code

2012-05-20 Thread Nathaniel Smith
On Sun, May 20, 2012 at 11:35 AM, Ralf Gommers wrote: > > > On Sat, May 19, 2012 at 10:54 PM, Nathaniel Smith wrote: >> >> >> Ralf, IIUC merging this and my other outstanding PRs would leave the >> datetime issues on python3/win32 as the only outstanding blocker? > > > Yes. There are some more op

Re: [Numpy-discussion] Separating out the maskna code

2012-05-20 Thread Nathaniel Smith
On Sun, May 20, 2012 at 6:08 AM, Travis Oliphant wrote: > Wow, Nathaniel.   This looks like a nice piece of tedious work. Honestly, it only took a few hours -- M-x grep is awesome. Would still have been better if it'd been separated in the first place, but so it goes. > I have not reviewed it in

Re: [Numpy-discussion] why not zerodivision error?

2012-05-20 Thread Tony Yu
On Sun, May 20, 2012 at 3:47 AM, eat wrote: > Hi, > > On Sun, May 20, 2012 at 10:21 AM, Chao YUE wrote: > >> Dear all, >> >> could anybody give one sentence about this? why in the loop I didn't get >> zerodivision error by when I explicitly do this, I get a zerodivision >> error? thanks. >> >> I

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-20 Thread Ralf Gommers
On Sun, May 20, 2012 at 12:04 AM, Tim Cera wrote: > I have thought for a long time that it would be nice to have numpy/scipy > docs in multiple languages. I didn't have any idea how to do it until I > saw http://sphinx.pocoo.org/intl.html. The gettext builder which is a > requirement to make th

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Charles R Harris
On Sun, May 20, 2012 at 9:53 AM, Andreas Hilboll wrote: > > On Sun, May 20, 2012 at 9:37 AM, Charles R Harris > > mailto:charlesr.har...@gmail.com>> wrote: > > > > > > > > On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll > > wrote: > > > > Hi, > > > >

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Andreas Hilboll
> On Sun, May 20, 2012 at 9:37 AM, Charles R Harris > mailto:charlesr.har...@gmail.com>> wrote: > > > > On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll > wrote: > > Hi, > > I just noticed that there's two polyfit functions, one in > nu

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Charles R Harris
On Sun, May 20, 2012 at 9:41 AM, Charles R Harris wrote: > > > On Sun, May 20, 2012 at 9:37 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll wrote: >> >>> Hi, >>> >>> I just noticed that there's two polyfit functions, one in >>

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Charles R Harris
On Sun, May 20, 2012 at 9:37 AM, Charles R Harris wrote: > > > On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll wrote: > >> Hi, >> >> I just noticed that there's two polyfit functions, one in >> numpy.lib.polynomial, and one in numpy.polynomial. What's the reason for >> this? The calling signatu

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Charles R Harris
On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll wrote: > Hi, > > I just noticed that there's two polyfit functions, one in > numpy.lib.polynomial, and one in numpy.polynomial. What's the reason for > this? The calling signatures aren't identical (the numpy.polynomial > version supports weights),

[Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Andreas Hilboll
Hi, I just noticed that there's two polyfit functions, one in numpy.lib.polynomial, and one in numpy.polynomial. What's the reason for this? The calling signatures aren't identical (the numpy.polynomial version supports weights), and I couldn't find a notice on why two versions exist. Puzzled gre

Re: [Numpy-discussion] why not zerodivision error?

2012-05-20 Thread Chao YUE
thanks for this information. Chao 2012/5/20 eat > Hi, > > On Sun, May 20, 2012 at 10:21 AM, Chao YUE wrote: > >> Dear all, >> >> could anybody give one sentence about this? why in the loop I didn't get >> zerodivision error by when I explicitly do this, I get a zerodivision >> error? thanks. >

[Numpy-discussion] Named dtype array: Difference between a[0]['name'] and a['name'][0]?

2012-05-20 Thread bmu
I came acroos a question on stackoverflow (http://stackoverflow.com/q/9470604) and I am wondering if this is a bug import numpy as np dt = np.dtype([('tuple', (int, 2))]) a = np.zeros(3, dt) type(a['tuple'][0]) # ndarray type(a[0]['tuple']) # ndarray a['tuple'][0] = (1,2) # ok a[0]['tuple'] =

Re: [Numpy-discussion] Separating out the maskna code

2012-05-20 Thread Ralf Gommers
On Sat, May 19, 2012 at 10:54 PM, Nathaniel Smith wrote: > > Ralf, IIUC merging this and my other outstanding PRs would leave the > datetime issues on python3/win32 as the only outstanding blocker? > Yes. There are some more open tickets for 1.7 (see http://projects.scipy.org/numpy/report/3), bu

Re: [Numpy-discussion] ANN: NumPy 1.6.2 released

2012-05-20 Thread Charles R Harris
On Sun, May 20, 2012 at 3:34 AM, Ralf Gommers wrote: > Hi, > > I'm pleased to announce the availability of NumPy 1.6.2. This is a > maintenance release. Due to the delay of the NumPy 1.7.0, this release > contains far more fixes than a regular NumPy bugfix release. It also > includes a number of

[Numpy-discussion] ANN: NumPy 1.6.2 released

2012-05-20 Thread Ralf Gommers
Hi, I'm pleased to announce the availability of NumPy 1.6.2. This is a maintenance release. Due to the delay of the NumPy 1.7.0, this release contains far more fixes than a regular NumPy bugfix release. It also includes a number of documentation and build improvements. Sources and binary instal

Re: [Numpy-discussion] Masked Array for NumPy 1.7

2012-05-20 Thread Charles R Harris
On Sat, May 19, 2012 at 11:38 PM, Travis Oliphant wrote: > > On May 20, 2012, at 12:15 AM, Charles R Harris wrote: > > > > On Sat, May 19, 2012 at 10:48 PM, Travis Oliphant wrote: > >> > >> > My own plan for the near term would be as follows: >> > >> > 1) Put in the experimental option and get the

Re: [Numpy-discussion] why not zerodivision error?

2012-05-20 Thread eat
Hi, On Sun, May 20, 2012 at 10:21 AM, Chao YUE wrote: > Dear all, > > could anybody give one sentence about this? why in the loop I didn't get > zerodivision error by when I explicitly do this, I get a zerodivision > error? thanks. > > In [7]: for i in np.arange(-10,10): > print 1./i >

[Numpy-discussion] why not zerodivision error?

2012-05-20 Thread Chao YUE
Dear all, could anybody give one sentence about this? why in the loop I didn't get zerodivision error by when I explicitly do this, I get a zerodivision error? thanks. In [7]: for i in np.arange(-10,10): print 1./i ...: -0.1 -0. -0.125 -0.142857142857 -0.1667 -0.2 -