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

2009-10-29 Thread Dorian Raymer
Hi Dan, I have recently created an AMI for running python processes. I recommend using the ubuntu server ami's provided by http://alestic.com/. Alestic is a well known provider of public AMI images. I think this is exactly the place you want to start from; anything you need is an apt-get or

[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

[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] 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 pschmid...@mmb.pcb.ub.es Subject: [Numpy-discussion] reading gzip compressed files using numpy.fromfile To: numpy-discussion@scipy.org Message-ID: fc345224bfa26132e9474287e32e0...@mmb.pcb.ub.es Content-Type: text/plain;

[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

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 d...@cs.toronto.eduwrote: 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

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:

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 nabb...@lonely-star.org 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

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 Hi,

[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]:

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 da...@student.matnat.uio.no 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]:

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 da...@student.matnat.uio.no 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),

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

2009-10-29 Thread Robert Kern
On Wed, Oct 28, 2009 at 23:29, Dan Yamins dyam...@gmail.com 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

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 believe

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 da...@ar.media.kyoto-u.ac.jp 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.

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 data

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 version of

[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

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:

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 proposal: