[Numpy-discussion] numpy.load raising IOError but EOFError expected

2010-06-23 Thread Ruben Salvador
Hi there, I have a .npy file built by succesively adding results from different test runs of an algorithm. Each time it's run, I save a numpy.array using numpy.save as follows: fn = 'file.npy' f = open(fn, 'a+b') np.save(f, arr) f.close() When I try to read the file with the following code, for

Re: [Numpy-discussion] numpy.load raising IOError but EOFError expected

2010-06-23 Thread Ruben Salvador
Sorry, I forgot to include versions info: Python 2.5.5 Numpy Version: 1:1.3.0-3+b1 (actual debian testing) On Wed, Jun 23, 2010 at 12:46 PM, Ruben Salvador rsalvador...@gmail.comwrote: Hi there, I have a .npy file built by succesively adding results from different test runs of an algorithm.

Re: [Numpy-discussion] 2d binning and linear regression

2010-06-23 Thread Bruce Southey
On 06/22/2010 02:58 PM, josef.p...@gmail.com wrote: On Tue, Jun 22, 2010 at 10:09 AM, Tom Durrantthdurr...@gmail.com wrote: the basic idea is in polyfit on multiple data points on numpy-disscusion mailing list April 2009 In this case, calculations have to be done by groups subtract

[Numpy-discussion] Transpose Array How?

2010-06-23 Thread Alan Bromborsky
In the transpose function we have transpose(a,axis) where axis can be a list of integers. But exactly what to the integers mean? If axis = [i1,i2] switching axis i1 with axis i2 is obvious, but what if axis = [i1,i2,i3]. Does this describe a cyclic permutation where i1-i2-i3-i2 or what does

Re: [Numpy-discussion] Transpose Array How?

2010-06-23 Thread Alan Bromborsky
Alan Bromborsky wrote: In the transpose function we have transpose(a,axis) where axis can be a list of integers. But exactly what to the integers mean? If axis = [i1,i2] switching axis i1 with axis i2 is obvious, but what if axis = [i1,i2,i3]. Does this describe a cyclic permutation where

Re: [Numpy-discussion] Transpose Array How?

2010-06-23 Thread Angus McMorland
On 23 June 2010 16:13, Alan Bromborsky abro...@verizon.net wrote: Alan Bromborsky wrote: In the transpose function we have transpose(a,axis) where axis can be a list of integers.  But exactly what to the integers mean? If axis = [i1,i2] switching axis i1 with axis i2 is obvious, but what if

Re: [Numpy-discussion] Transpose Array How?

2010-06-23 Thread Alan Bromborsky
Angus McMorland wrote: On 23 June 2010 16:13, Alan Bromborsky abro...@verizon.net wrote: Alan Bromborsky wrote: In the transpose function we have transpose(a,axis) where axis can be a list of integers. But exactly what to the integers mean? If axis = [i1,i2] switching axis i1 with

Re: [Numpy-discussion] Numpy.linalg.eig oddity

2010-06-23 Thread David Goldsmith
Is it not possible to update your versions to see if that solves the problem? DG On Wed, Jun 23, 2010 at 11:25 AM, Salim, Fadhley (CA-CIB) fadhley.sa...@ca-cib.com wrote: I've been investigating a truly bizarre bug related to the use of numpy.linalg.eig. I have two classes which both use

Re: [Numpy-discussion] Numpy.linalg.eig oddity

2010-06-23 Thread Robert Kern
On Wed, Jun 23, 2010 at 13:25, Salim, Fadhley (CA-CIB) fadhley.sa...@ca-cib.com wrote: I've been investigating a truly bizarre bug related to the use of numpy.linalg.eig. I have two classes which both use numpy.linalg.eig. These classes are used at very different times and are not connected

Re: [Numpy-discussion] Numpy.linalg.eig oddity

2010-06-23 Thread David Goldsmith
On Wed, Jun 23, 2010 at 2:17 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Jun 23, 2010 at 13:25, Salim, Fadhley (CA-CIB) fadhley.sa...@ca-cib.com wrote: I've been investigating a truly bizarre bug related to the use of numpy.linalg.eig. I have two classes which both use