Re: [Numpy-discussion] datetime64

2009-10-29 Thread Pierre GM
On Oct 29, 2009, at 4:22 PM, Alok Singhal wrote: > Hi, > > On 29/10/09: 12:18, Ariel Rokem wrote: >> I want to start trying out the new dtype for representation of arrays >> of times, datetime64, which is implemented in the current svn. Is >> there any documentation anywhere? I know of this propo

Re: [Numpy-discussion] datetime64

2009-10-29 Thread Alok Singhal
Hi, On 29/10/09: 12:18, Ariel Rokem wrote: > I want to start trying out the new dtype for representation of arrays > of times, datetime64, which is implemented in the current svn. Is > there any documentation anywhere? I know of this proposal: > > http://numpy.scipy.org/svn/numpy/tags/1.3.0/doc/n

[Numpy-discussion] datetime64

2009-10-29 Thread Ariel Rokem
Hi - I want to start trying out the new dtype for representation of arrays of times, datetime64, which is implemented in the current svn. Is there any documentation anywhere? I know of this proposal: http://numpy.scipy.org/svn/numpy/tags/1.3.0/doc/neps/datetime-proposal3.rst but apparently the c

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Pierre GM
On Oct 29, 2009, at 8:30 AM, TheLonelyStar wrote: > > Adter trying the same thing in matlab, I realized that my "tsv" file > is not > matrix-style. But this I mean, not all lines ave the same lenght > (not the > same number of values). > > What would be the best way to load this? The SVN ver

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Christopher Barker
Peter Schmidtke wrote: > Have you tried the numpy.fromfile function? good point -- fromfile() can be much faster for the simple cases it can handle. > not all lines ave the same lenght (not the > same number of values). > > What would be the best way to load this? That depends on what the dat

Re: [Numpy-discussion] [RFC] new function for floating point comparison

2009-10-29 Thread Robert Kern
On Thu, Oct 29, 2009 at 02:17, David Cournapeau wrote: > Hi, > >    I have added a couple of utilities for floating point comparison, to > be used in unit tests mostly, and would like some comments, especially > from people knowledgeable about floating point. > > http://github.com/cournape/numpy/t

Re: [Numpy-discussion] Numpy/Scipy for EC2

2009-10-29 Thread Dan Yamins
I haven't used it, but this seems to provide a good environment for your > needs. > > http://web.mit.edu/stardev/cluster/ > > Robert Kern to the rescue again! StarCluster looks great. And thanks Dorian as well, I'm also checking out Alestic. Dan > -- > Robert Kern > > "I have come to b

Re: [Numpy-discussion] Numpy/Scipy for EC2

2009-10-29 Thread Robert Kern
On Wed, Oct 28, 2009 at 23:29, Dan Yamins wrote: > Hi all: > > I'm gearing up to build an Amazon Machine Instance (AMI) for use in doing > Numpy/Scipy computations on the Amazon EC2 cloud. > > I'm writing to ask if anyone has any advice for which (if any) publicly > available AMI I should start wi

Re: [Numpy-discussion] Unexplained nans in matrix multiplication

2009-10-29 Thread Dag Sverre Seljebotn
David Cournapeau wrote: > On Thu, Oct 29, 2009 at 10:26 PM, Dag Sverre Seljebotn > wrote: > >> I'm getting (to me( very mysterious NaNs when doing matrix >> multiplication with certain (randomly generated) data: >> >> In [52]: a.shape, b.shape, i, j >> Out[52]: ((22, 1000), (1000, 22), 0, 16) >

Re: [Numpy-discussion] Unexplained nans in matrix multiplication

2009-10-29 Thread David Cournapeau
On Thu, Oct 29, 2009 at 10:26 PM, Dag Sverre Seljebotn wrote: > I'm getting (to me( very mysterious NaNs when doing matrix > multiplication with certain (randomly generated) data: > > In [52]: a.shape, b.shape, i, j > Out[52]: ((22, 1000), (1000, 22), 0, 16) > > In [53]: np.dot(a, b)[i,j] > Out[53

[Numpy-discussion] Unexplained nans in matrix multiplication

2009-10-29 Thread Dag Sverre Seljebotn
I'm getting (to me( very mysterious NaNs when doing matrix multiplication with certain (randomly generated) data: In [52]: a.shape, b.shape, i, j Out[52]: ((22, 1000), (1000, 22), 0, 16) In [53]: np.dot(a, b)[i,j] Out[53]: (31.322778824758661+nan*j) In [54]: np.dot(a[i,:], b[:,j]) Out[54]: (31.

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Bruce Southey
On 10/29/2009 07:30 AM, TheLonelyStar wrote: > Adter trying the same thing in matlab, I realized that my "tsv" file is not > matrix-style. But this I mean, not all lines ave the same lenght (not the > same number of values). > > What would be the best way to load this? > > Regards, > Nathan >

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
On Thu, 29 Oct 2009 05:30:09 -0700 (PDT), TheLonelyStar wrote: > Adter trying the same thing in matlab, I realized that my "tsv" file is not > matrix-style. But this I mean, not all lines ave the same lenght (not the > same number of values). > > What would be the best way to load this? > > Rega

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread TheLonelyStar
Adter trying the same thing in matlab, I realized that my "tsv" file is not matrix-style. But this I mean, not all lines ave the same lenght (not the same number of values). What would be the best way to load this? Regards, Nathan -- View this message in context: http://www.nabble.com/numpy-l

Re: [Numpy-discussion] recommended way to run numpy on snow leopard

2009-10-29 Thread Robin
On Fri, Oct 23, 2009 at 9:09 AM, David Warde-Farley wrote: > The Python.org sources for 2.6.x has a script in the Mac/ subdirectory > (I think, or in the build tools) for building a 4-way universal binary > (i386, x86_64, ppc and ppc64). You can rather easily build it (just > run the script) and i

[Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
Have you tried the numpy.fromfile function? This usually worked great for my files that had the same format than yours. ++ Peter -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona

[Numpy-discussion] reading gzip compressed files using numpy.fromfile

2009-10-29 Thread Peter Schmidtke
> Date: Wed, 28 Oct 2009 20:31:43 +0100 > From: Peter Schmidtke > Subject: [Numpy-discussion] reading gzip compressed files using > numpy.fromfile > To: numpy-discussion@scipy.org > Message-ID: > Content-Type: text/plain; charset="UTF-8" > > Dear Numpy Mailing List Readers, > > I have a q

[Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread TheLonelyStar
Hi, I am trying to load a tsv file using numpy.loadtxt: data = np.loadtxt('data.txt',delimiter='\t',dtype=np.float) And I get: - /usr/lib/python2.6/site-packages/numpy/lib/io.pyc in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack) 503

[Numpy-discussion] [RFC] new function for floating point comparison

2009-10-29 Thread David Cournapeau
Hi, I have added a couple of utilities for floating point comparison, to be used in unit tests mostly, and would like some comments, especially from people knowledgeable about floating point. http://github.com/cournape/numpy/tree/new_ulp_comp The main difference compared to other functions i