[Numpy-discussion] ANN: MDP release 2.6 and MDP Sprint 2010

2010-05-14 Thread Tiziano Zito
We are glad to announce release 2.6 of the Modular toolkit for Data Processing (MDP). MDP is a Python library of widely used data processing algorithms that can be combined according to a pipeline analogy to build more complex data processing software. The base of available algorithms includes,

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Robert Kern
On Wed, May 12, 2010 at 20:19, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: When operating on an array whose last dimension is unity, the default behavior of argsort is not very useful: |6 x=random.random((4,1)) |7 shape(x)                      7 (4, 1) |8 argsort(x)                

Re: [Numpy-discussion] missing='' not documented in genfromtxt()

2010-05-14 Thread Pierre GM
On May 13, 2010, at 11:51 PM, Vincent Davis wrote: Because the use of `missing` is deprecated (try to use anything but '' for missing, and you'll get a deprecation warning). Use `missing_values` instead. I wasn't using 'missing' but was wondering what it did. @Pierre, Stéfan van der Walt

[Numpy-discussion] memory leak?

2010-05-14 Thread Brian Blais
Hello, I have the following code, where I noticed a memory leak with +=, but not with + alone. import numpy m=numpy.matrix(numpy.ones((23,23))) for i in range(1000): m+=0.0 # keeps growing in memory #m=m+0.0 # is stable in memory My version of python is 2.5, numpy 1.3.0,

Re: [Numpy-discussion] memory leak?

2010-05-14 Thread josef . pktd
On Fri, May 14, 2010 at 2:43 PM, Brian Blais bbl...@bryant.edu wrote: Hello, I have the following code, where I noticed a memory leak with +=, but not with + alone. import numpy m=numpy.matrix(numpy.ones((23,23))) for i in range(1000):     m+=0.0  # keeps growing in memory     #    

Re: [Numpy-discussion] memory leak?

2010-05-14 Thread josef . pktd
On Fri, May 14, 2010 at 3:26 PM, josef.p...@gmail.com wrote: On Fri, May 14, 2010 at 2:43 PM, Brian Blais bbl...@bryant.edu wrote: Hello, I have the following code, where I noticed a memory leak with +=, but not with + alone. import numpy m=numpy.matrix(numpy.ones((23,23))) for i in

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Dr. Phillip M. Feldman
Robert Kern-2 wrote: On Wed, May 12, 2010 at 20:19, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: When operating on an array whose last dimension is unity, the default behavior of argsort is not very useful: |6 x=random.random((4,1)) |7 shape(x)                      7 (4, 1) |8

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Eric Firing
On 05/14/2010 11:03 AM, Dr. Phillip M. Feldman wrote: Robert Kern-2 wrote: On Wed, May 12, 2010 at 20:19, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: When operating on an array whose last dimension is unity, the default behavior of argsort is not very useful: |6

[Numpy-discussion] recarray question

2010-05-14 Thread Vincent Davis
The setup: Adata array([(1, 24, 'Male', '', 212, 193, 'High Pass'), (2, 26, 'Male', 'Caucasian', 234, 221, 'Honors'), (3, 31, 'Female', 'Caucasian', 182, 189, ''), (4, 27, 'Female', 'Hispanic', 214, 211, 'High Pass'), (5, 27, 'Female', 'Asian', 213, 204, 'Pass'),

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Robert Kern
On Fri, May 14, 2010 at 17:29, Eric Firing efir...@hawaii.edu wrote: On 05/14/2010 11:03 AM, Dr. Phillip M. Feldman wrote: Robert Kern-2 wrote: On Wed, May 12, 2010 at 20:19, Dr. Phillip M. Feldman pfeld...@verizon.net  wrote: When operating on an array whose last dimension is unity, the

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Chris Barker
Second, treating a unit dimension differently from a non-unit dimension *is* making it a special case, and often--usually--one does not want that. It is perfectly reasonable to have an algorithm that uses values sorted along the last axis, even if that dimension sometimes turns out to be

Re: [Numpy-discussion] default behavior of argsort

2010-05-14 Thread Chris Barker
Chris Barker wrote: I can't find it right now, but I'm pretty sure there is a function that will re-shape an array to remove the length-1 dimensions -- maybe that's what the OP needs. it's np.squeeze() -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division

Re: [Numpy-discussion] memory leak?

2010-05-14 Thread Brian Blais
On May 14, 2010, at 16:03 , josef.p...@gmail.com wrote: On Fri, May 14, 2010 at 3:26 PM, josef.p...@gmail.com wrote: On Fri, May 14, 2010 at 2:43 PM, Brian Blais bbl...@bryant.edu wrote: Hello, I have the following code, where I noticed a memory leak with +=, but not with + alone.

[Numpy-discussion] Problems creating numpy.array with a dtype

2010-05-14 Thread Jimmie Houchin
Hello, I am really liking Numpy a lot. It is wonderful to be able to do the things that it does in a language as friendly as Python, and with the performance Numpy delivers over standard Python. Thanks. I am having a problem with creation of Numpy arrays with my generated dtypes. I am creating