Re: [Numpy-discussion] byteswap() leaves dtype unchanged

2007-05-30 Thread Francesc Altet
El dt 29 de 05 del 2007 a les 14:17 -0400, en/na Erin Sheldon va escriure: Hi all - I have read some big-endian data and I want to byte swap it to little endian. If I use a.byteswap(True) the bytes clearly get swapped, but the dtype is not updated to reflect the new data type. e.g

Re: [Numpy-discussion] corrcoef of masked array

2007-05-30 Thread Jesper Larsen
On Friday 25 May 2007 19:18, Robert Kern wrote: Jesper Larsen wrote: Hi numpy users, I have a masked array of dimension (nvariables, nobservations) that contain missing values at arbitrary points. Is it safe to rely on numpy.corrcoeff to calculate the correlation coefficients of a

Re: [Numpy-discussion] byteswap() leaves dtype unchanged

2007-05-30 Thread Erin Sheldon
On 5/30/07, Francesc Altet [EMAIL PROTECTED] wrote: El dt 29 de 05 del 2007 a les 14:17 -0400, en/na Erin Sheldon va escriure: Hi all - I have read some big-endian data and I want to byte swap it to little endian. If I use a.byteswap(True) the bytes clearly get swapped, but the

Re: [Numpy-discussion] byteswap() leaves dtype unchanged

2007-05-30 Thread Matthew Brett
Hi, This doesn't make any sense. The numbers have changed but the dtype is now incorrect. If you byteswap and correct the dtype the numbers have still changed, but you now can actually use the object. By numbers have still changed I mean the underlying byte order is still different,

Re: [Numpy-discussion] byteswap() leaves dtype unchanged

2007-05-30 Thread Erin Sheldon
Matthew, this is a very clear description of all the issues, and I now see why it can be useful to keep the two methods separate. I think an update to the doc string for byteswap() with this description would be useful. Or perhaps a keyword to byteswap() in which one could specify the behavior

[Numpy-discussion] Problem with numpy-1.0.3.tar.gz file

2007-05-30 Thread Christopher Hanley
Hi, Could someone please re-create the numpy-1.0.3.tar.gz file that is currently being distributed from sourceforge? That tar file includes the following: /data/sparty1/dev/tmp/numpy-1.0.3 sparty ls -al total 44 drwxr-sr-x3 chanley science 4096 May 23 18:30 ./ drwxr-sr-x4

Re: [Numpy-discussion] corrcoef of masked array

2007-05-30 Thread Robert Kern
Jesper Larsen wrote: Here is my solution for calculating the correlation coefficients for masked arrays. Comments are appreciated: def macorrcoef(data1, data2): Calculates correlation coefficients taking masked out values into account. It is assumed (but not checked) that

Re: [Numpy-discussion] byteswap() leaves dtype unchanged

2007-05-30 Thread Anne Archibald
On 30/05/07, Matthew Brett [EMAIL PROTECTED] wrote: I think the point is that you can have several different situations with byte ordering: 1) Your data and dtype endianess match, but you want the data swapped and the dtype to reflect this 2) Your data and dtype endianess don't match, and

[Numpy-discussion] New Linux build problem

2007-05-30 Thread Brian Granger
Hi, I am building numpy on a 32 bit Linux system (Scientific Linux). Numpy used to build fine on this system, but as I have moved to the new 1.0.3 versions, I have run into problems building. Basically, I get lots of things like: undefined reference to `cblas_sdot' and undefined reference to

Re: [Numpy-discussion] New Linux build problem

2007-05-30 Thread Brian Granger
This looks like numpy.distutils has found ATLAS's FORTRAN BLAS library but not its libcblas library. Do you have a correct site.cfg file? From Chris Hanley's earlier post, it looks like the tarball on the SF site mistakenly includes a site.cfg. Delete it or correct it. I will look at this.

Re: [Numpy-discussion] New Linux build problem

2007-05-30 Thread Brian Granger
Take that back, unsetting LDFLAGS did work!!! Thanks Brian On 5/30/07, Brian Granger [EMAIL PROTECTED] wrote: This looks like numpy.distutils has found ATLAS's FORTRAN BLAS library but not its libcblas library. Do you have a correct site.cfg file? From Chris Hanley's earlier post,

Re: [Numpy-discussion] build problem on Windows (was: build problemon RHE3 machine)

2007-05-30 Thread David M. Cooke
On Thu, May 31, 2007 at 02:32:21AM +0200, Albert Strasheim wrote: Hello all - Original Message - From: David M. Cooke [EMAIL PROTECTED] To: Discussion of Numerical Python numpy-discussion@scipy.org Sent: Thursday, May 31, 2007 2:08 AM Subject: Re: [Numpy-discussion] build problem

Re: [Numpy-discussion] Problem with numpy-1.0.3.tar.gz file

2007-05-30 Thread Travis Oliphant
Christopher Hanley wrote: Hi, Could someone please re-create the numpy-1.0.3.tar.gz file that is currently being distributed from sourceforge? That tar file includes the following: I've fixed the tar-ball. It is named numpy-1.0.3-2.tar.gz -Travis

[Numpy-discussion] SciPy Journal

2007-05-30 Thread Travis Oliphant
Hi everybody, I'm sorry for the cross posting, but I wanted to reach a wide audience and I know not everybody subscribes to all the lists. I've been thinking more about the SciPy Journal that we discussed before and I have some thoughts. 1) I'd like to get it going so that we can push out