Re: [Numpy-discussion] Porting numpy to python 3.x, status update

2010-02-05 Thread Travis Oliphant
On Feb 6, 2010, at 1:08 AM, Rohit Garg wrote: Hi all, This says that planning for migration to python 3 has begun. More than planning. Actually Pauli (and Chuck I believe) have made quite a bit of progress. Pauli just posted his roadmap of what needs to be finished. It is difficult

[Numpy-discussion] Porting numpy to python 3.x, status update

2010-02-05 Thread Rohit Garg
Hi all, This says that planning for migration to python 3 has begun. http://blog.jarrodmillman.com/2009/11/numpy-14-coming-soon.html It has been a month since 1.4 was released. Is there a status page somewhere where one can checkup on progress for the same? Is Python 3.x support planned for 1.5?

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Travis Oliphant
Given all the discussions that have happened. I want to be clear about my proposal. It is: * 1.4.1 is an ABI break including datetime, hasobject, and a few place- holders in the structures * no future ABI breakages until after the Py3K transition (at least 18 months away) -- I don't foresee

Re: [Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Travis Oliphant
On Feb 5, 2010, at 2:12 PM, Angus McMorland wrote: Hi all, I'm trying to import data from a matlab file using scipy.io.loadmat. One of the variables in the file imports as an array of shape (51,) of dtype object, with each element being an array of shape (23,100) of dtype float. How do I conve

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Travis Oliphant
On Feb 5, 2010, at 9:59 PM, Darren Dale wrote: > On Fri, Feb 5, 2010 at 10:25 PM, Travis Oliphant > wrote: >> >> On Feb 5, 2010, at 2:32 PM, Christopher Barker wrote: >> >>> Hi folks, >>> >>> It sounds like a consensus has been reached to put out a 1.4.1 >>> that is >>> ABI compatible with 1.3

Re: [Numpy-discussion] Installed NumPy and MatPlotLib in the Wrong Order. How uninstall MPL?

2010-02-05 Thread josef . pktd
On Fri, Feb 5, 2010 at 10:37 PM, Wayne Watson wrote: > See Subject. > > I'm working in IDLE in Win7. It seems to me MPL gets stuck in > site-packages under C:\Python25. Maybe this is as simple as deleting the > entry? What does it mean that MPL gets stuck? what kind of stuck? (My experience is o

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Darren Dale
On Fri, Feb 5, 2010 at 10:25 PM, Travis Oliphant wrote: > > On Feb 5, 2010, at 2:32 PM, Christopher Barker wrote: > >> Hi folks, >> >> It sounds like a consensus has been reached to put out a 1.4.1 that is >> ABI compatible with 1.3.* > > This is not true.   Consensus has not been reached. How ma

[Numpy-discussion] Installed NumPy and MatPlotLib in the Wrong Order. How uninstall MPL?

2010-02-05 Thread Wayne Watson
See Subject. I'm working in IDLE in Win7. It seems to me MPL gets stuck in site-packages under C:\Python25. Maybe this is as simple as deleting the entry? Well, yes there's a MPL folder under site-packages and an info MPL file of 540 bytes. There are also pylab.py, pyc,and py0 files under site.

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Travis Oliphant
On Feb 5, 2010, at 2:32 PM, Christopher Barker wrote: > Hi folks, > > It sounds like a consensus has been reached to put out a 1.4.1 that is > ABI compatible with 1.3.* This is not true. Consensus has not been reached. I think 1.3.9 should be released and 1.4.1 should be ABI incompatible. Bu

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Travis Oliphant
On Feb 4, 2010, at 1:51 PM, Gael Varoquaux wrote: > I'd like to say that I am +1 with everything that has been said > against > breakage. This isn't the question at hand anymore. The only question at hand is what to label the no ABI breaking release. I actually feel pretty strongly that t

Re: [Numpy-discussion] wired error message in scipy.sparse.eigen function: Segmentation fault

2010-02-05 Thread Jankins
This problem keeps bothering me for days. If you need more sample to test it, I got one more. I tested it this morning. And the "segmentation fault" happened at a specific place. I guess, finally, I have to refer to the original eigenvalue algorithm or Matlab. Thanks. On Fri, Feb 5, 2010 at 1

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Jarrod Millman
On Fri, Feb 5, 2010 at 12:32 PM, Christopher Barker wrote: > If that's the case, and particularly if it's going to be a while before > 1.4.1 is ready, I suggest that the 1.4.0 release be pulled from "current > release" status on the download sites. +1 _

Re: [Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Matthew Brett
HI, > I'm trying to import data from a matlab file using scipy.io.loadmat. > One of the variables in the file imports as an array of shape (51,) of > dtype object, with each element being an array of shape (23,100) of > dtype float. How do I convert this array into a single array of dtype > float

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Matthew Brett
Hi, >> If that's the case, and particularly if it's going to be a while before >> 1.4.1 is ready, I suggest that the 1.4.0 release be pulled from "current >> release" status on the download sites. > > +1. If the decision is as you say, I agree with you. That seems reasonable to me too... Best,

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Gael Varoquaux
On Fri, Feb 05, 2010 at 12:32:59PM -0800, Christopher Barker wrote: > Hi folks, > It sounds like a consensus has been reached to put out a 1.4.1 that is > ABI compatible with 1.3.* > If that's the case, and particularly if it's going to be a while before > 1.4.1 is ready, I suggest that the 1.4

Re: [Numpy-discussion] How long does it take to create an array?

2010-02-05 Thread Robert Kern
On Fri, Feb 5, 2010 at 12:26, Keith Goodman wrote: > Why is the second method of converting a list of tuples to an array so > much faster? > >>> x = range(500) >>> x = [(z,) for z in x] # <-- e.g. output of a sql database >>> x[:5] >   [(0,), (1,), (2,), (3,), (4,)] >>> >>> timeit np.array(x).resh

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Christopher Barker
Hi folks, It sounds like a consensus has been reached to put out a 1.4.1 that is ABI compatible with 1.3.* If that's the case, and particularly if it's going to be a while before 1.4.1 is ready, I suggest that the 1.4.0 release be pulled from "current release" status on the download sites. We

[Numpy-discussion] Conversion of matlab import containing objects into 3d array

2010-02-05 Thread Angus McMorland
Hi all, I'm trying to import data from a matlab file using scipy.io.loadmat. One of the variables in the file imports as an array of shape (51,) of dtype object, with each element being an array of shape (23,100) of dtype float. How do I convert this array into a single array of dtype float with s

[Numpy-discussion] How long does it take to create an array?

2010-02-05 Thread Keith Goodman
Why is the second method of converting a list of tuples to an array so much faster? >> x = range(500) >> x = [(z,) for z in x] # <-- e.g. output of a sql database >> x[:5] [(0,), (1,), (2,), (3,), (4,)] >> >> timeit np.array(x).reshape(-1) # <-- slow 1000 loops, best of 3: 832 us per loop >> t

Re: [Numpy-discussion] u in [u+1]

2010-02-05 Thread josef . pktd
On Fri, Feb 5, 2010 at 8:48 AM, Zachary Pincus wrote: >> I'm having some trouble here.  I have a list of numpy arrays.  I >> want to >> know if an array 'u' is in the list. > > Try: > > any(numpy.all(u == l) for l in array_list) > > standard caveats about float comparisons apply; perhaps > any(num

Re: [Numpy-discussion] u in [u+1]

2010-02-05 Thread Zachary Pincus
> I'm having some trouble here. I have a list of numpy arrays. I > want to > know if an array 'u' is in the list. Try: any(numpy.all(u == l) for l in array_list) standard caveats about float comparisons apply; perhaps any(numpy.allclose(u, l) for l in array_list) is more appropriate in certa

[Numpy-discussion] u in [u+1]

2010-02-05 Thread Neal Becker
I'm having some trouble here. I have a list of numpy arrays. I want to know if an array 'u' is in the list. As an example, u = np.arange(10) : u not in [u+1] --- ValueErrorTraceback (most re

Re: [Numpy-discussion] Audio signal capture and processing

2010-02-05 Thread David Cournapeau
René Dudfield wrote: > > Also audiolab uses bindings to libsndfile - so you can open a number of > formats. However it is pretty new, so isn't packaged by distros(yet), > and there are no mac binaries(yet). It's probably the best way to go if > you can handle compiling it yourself and the de

Re: [Numpy-discussion] Audio signal capture and processing

2010-02-05 Thread René Dudfield
hi, pyaudio is pretty good for recording audio. It is based on portaudio and has binaries available for win/mac - and is included in many linux distros too (so is pygame). You can load, and play audio with pygame. You can use the pygame.sndarray module for converting the pygame.Sound objects i

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Matthew Brett
Hi, > Getting rid of FILE* pointers and file descriptor would also helps > quite a bit on windows. I know that at some point, there were some > discussions to make the python C API safe to multiple C runtimes, but > I cannot find any recent discussion on that fact. I should just ask on > python-de

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread David Cournapeau
Pauli Virtanen wrote: > > Making structures opaque is a bit worrying. As far as I understand, so > far the API has been nearly compatible with Numeric. I assumed that we would simply give up the Numeric compatibility - does it really matter for a NumPy which is at best out in 2011/2012 ? It is

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-05 Thread Pauli Virtanen
pe, 2010-02-05 kello 11:09 +0900, David Cournapeau kirjoitti: [clip] > I think a py3k buildbot would help for this, right ? Another thing is > that the py3k changes do not work at all with Visual Studio compilers, > but that's mostly cosmetic things (like #warning not being supported > and things l