Re: [Numpy-discussion] About ready to start 1.8 release process.

2013-08-13 Thread Charles R Harris
I wish it were. It seems unreasonably difficult to get constructive feedback. Chris is pretty much the only one making the attempt and that discussion petered out. I don't use datetime64 much myself, probably what we need is a developer who does use that facility. Any volunteers? Chuck On Tue, A

Re: [Numpy-discussion] About ready to start 1.8 release process.

2013-08-13 Thread Matthew Brett
Hi, On Mon, Aug 12, 2013 at 4:16 PM, Chris Barker - NOAA Federal wrote: > On Mon, Aug 12, 2013 at 3:14 PM, Charles R Harris > wrote: > >>> > Datetime64 will not be modified in this release. >>> >>> I now there is neither the time nor the will for all that it needs, >>> but please, please, please

Re: [Numpy-discussion] Optimize removing nan-values of dataset

2013-08-13 Thread David Reed
Hi Thomas, Your array is Nx6 do you want the nan values replace by the mean of the 2 adjacent elemets by row or by column? On Tue, Aug 13, 2013 at 2:50 AM, Thomas Goebel < thomas.goe...@th-nuernberg.de> wrote: > Hi, > > i am trying to remove nan-values from an array of shape(40, 6). > These nan

Re: [Numpy-discussion] Do the prebuilt packages work with the python version that I compile myself?

2013-08-13 Thread Ralf Gommers
On Tue, Aug 13, 2013 at 6:10 PM, Peng Yu wrote: > Hi, > > I compile the latest python myself on Ubuntu. In this case, I think > the packages listed on the following webpage does not work with the > python version that I compiled. Am I correct? Thanks. > > http://www.scipy.org/install.html > If y

Re: [Numpy-discussion] How to compile numpy on ubuntu

2013-08-13 Thread Paul Hobson
On Tue, Aug 13, 2013 at 10:03 AM, Peng Yu wrote: > Hi, > > The instructions for compiling numpy on ubuntu seems to be very > outdated. Could anybody provide an updated instruction on installing > numpy? Thanks. > > http://docs.scipy.org/doc/numpy/user/install.html The latest instructions should

[Numpy-discussion] How to compile numpy on ubuntu

2013-08-13 Thread Peng Yu
Hi, The instructions for compiling numpy on ubuntu seems to be very outdated. Could anybody provide an updated instruction on installing numpy? Thanks. http://docs.scipy.org/doc/numpy/user/install.html -- Regards, Peng ___ NumPy-Discussion mailing lis

[Numpy-discussion] Do the prebuilt packages work with the python version that I compile myself?

2013-08-13 Thread Peng Yu
Hi, I compile the latest python myself on Ubuntu. In this case, I think the packages listed on the following webpage does not work with the python version that I compiled. Am I correct? Thanks. http://www.scipy.org/install.html -- Regards, Peng ___ Num

Re: [Numpy-discussion] Reading footer lines

2013-08-13 Thread Chris Barker - NOAA Federal
On Tue, Aug 13, 2013 at 6:01 AM, Daπid wrote: > Alternatively, you could also use seek to put the pointer a certain > distance from the end of the file and start from there, That's what I'd do if the file(s) may be too large to simply dump into memory. > but this could cause problems in Windows

Re: [Numpy-discussion] Reading footer lines

2013-08-13 Thread Daπid
On 13 August 2013 14:20, Resmi wrote: > As a workaround, I've tried using os.system along with grep. And I get the > following output : > os.system("grep -e 'tx' 'data.dat' ") > ## tx =2023.06 > 0 > > Why is there a 0 in the output? The file has no blank lines. That 0 corresponds to the

Re: [Numpy-discussion] Reading footer lines

2013-08-13 Thread Stéfan van der Walt
Hi Resmi On Tue, Aug 13, 2013 at 2:20 PM, Resmi wrote: > I've a list of long files of numerical data ending with footer lines > (beginning with #). I am using numpy.loadtxt to read the numbers, and > loadtxt ignores these footer lines. I want the numpy code to read one of the > footer lines and e

Re: [Numpy-discussion] Reading footer lines

2013-08-13 Thread Peter Cock
On Tue, Aug 13, 2013 at 1:20 PM, Resmi wrote: > Hi, > > I've a list of long files of numerical data ending with footer lines > (beginning with #). I am using numpy.loadtxt to read the numbers, and > loadtxt ignores these footer lines. I want the numpy code to read one of the > footer lines and ext

[Numpy-discussion] Reading footer lines

2013-08-13 Thread Resmi
Hi, I've a list of long files of numerical data ending with footer lines (beginning with #). I am using numpy.loadtxt to read the numbers, and loadtxt ignores these footer lines. I want the numpy code to read one of the footer lines and extract words from it. Is there a way to use loadtxt for this

[Numpy-discussion] numpy bug with negative int pow

2013-08-13 Thread Dmitrey
Python 3.3.1 (default, Apr 17 2013, 22:32:14) [GCC 4.7.3] on linux >>> import numpy >>> numpy.__version__ '1.8.0.dev-d62f11d' >>> numpy.array((1,2,3)) / 2 array([ 0.5,  1. ,  1.5]) #ok, but since division of integer arrays has been converted to float, pow is expected as well, but it's no

Re: [Numpy-discussion] Using as_strided to avoid copy on repeat (with 2-dimensional array)

2013-08-13 Thread Stéfan van der Walt
On Mon, Aug 12, 2013 at 11:23 PM, Robert Kern wrote: >> Is it possible to do the same using 'as_strided' to avoid copy (and still >> get the same output shape for B) ? > > No, this would not be uniformly strided in the 0 axis. Now, if only we supported simple fraction strides... Stéfan _