Re: [Numpy-discussion] returning recarray records as plain arrays

2007-01-03 Thread Pierre GM
On Wednesday 03 January 2007 23:57, Matthew Koichi Grimes wrote: > Pierre GM wrote: > > On Wednesday 03 January 2007 15:39, Matthew Koichi Grimes wrote: > >> As per Stefan's help, I've made a subclass of recarray called nnvalue. > >> It just fixes the dtype to [('x', 'f8'), ('dx', 'f8'), ('delta',

Re: [Numpy-discussion] OpenSuse 10.2 and numpy

2007-01-03 Thread Charles R Harris
On 1/3/07, Nils Wagner <[EMAIL PROTECTED]> wrote: Hi all, I have tried to build the latest numpy on a 64-bit machine using OpenSuSE10.2. I have build BLAS, LAPACK and ATLAS from scratch (g77). python setup.py build yields ... creating build/temp.linux-x86_64-2.5/numpy/linalg compile options:

Re: [Numpy-discussion] returning recarray records as plain arrays

2007-01-03 Thread Matthew Koichi Grimes
Pierre GM wrote: > On Wednesday 03 January 2007 15:39, Matthew Koichi Grimes wrote: > >> As per Stefan's help, I've made a subclass of recarray called nnvalue. >> It just fixes the dtype to [('x', 'f8'), ('dx', 'f8'), ('delta', 'f8)], >> and adds a few member functions. I basically treat nnvalue

Re: [Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread eric jones
Thanks for the update. For now, I'll try doing what I need to by sub-classing float. But, I'm gonna miss __array_finalize__ :-). eric Travis Oliphant wrote: > eric jones wrote: > > >> Hey all, >> >> I am playing around with sub-classing the new-fangled float64 objects >> and friends. I r

[Numpy-discussion] OpenSuse 10.2 and numpy

2007-01-03 Thread Nils Wagner
Hi all, I have tried to build the latest numpy on a 64-bit machine using OpenSuSE10.2. I have build BLAS, LAPACK and ATLAS from scratch (g77). python setup.py build yields ... creating build/temp.linux-x86_64-2.5/numpy/linalg compile options: '-DATLAS_INFO="\"3.7.11\"" -Inumpy/core/include -I

Re: [Numpy-discussion] Scipy - Numpy incompatiblility when calling upon Old Numeric

2007-01-03 Thread Travis Oliphant
frbeaxs wrote: > I am using Python 2.4 with Numpy 0.9.8. Matpylib graphs function > under these two version except when old numeric must be called to > utilized the spline function in contouring the graphs leading to the > error: > The version of NumPy compatible with different versions

Re: [Numpy-discussion] Advice please on efficient subtotal function

2007-01-03 Thread Andreas Eisele
Hi Stephen, > > I'm looking for efficient ways to subtotal a 1-d array onto a 2-D > grid. This > is more easily explained in code that words, thus: > > for n in xrange(len(data)): > totals[ i[n], j[n] ] += data[n] > > data comes from a series of PyTables files with ~200m rows. Each row > has ~2

[Numpy-discussion] Scipy - Numpy incompatiblility when calling upon Old Numeric

2007-01-03 Thread frbeaxs
I am using Python 2.4 with Numpy 0.9.8. Matpylib graphs function under these two version except when old numeric must be called to utilized the spline function in contouring the graphs leading to the error: Traceback (most recent call last): File "C:\File\XXX", line 3, in ? fr

[Numpy-discussion] test issue

2007-01-03 Thread belinda thom
Hello, I've been going thru Dave Kuhlman's "SciPy Course Outline" and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should worry about? Here's my setup: Mac G5 w/OS X 10.4.8, usi

Re: [Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread Travis Oliphant
eric jones wrote: >Hey all, > >I am playing around with sub-classing the new-fangled float64 objects >and friends. I really like the new ndarray subclassing features >(__array_finalize__, etc.), and was exploring whether or not the scalars >worked the same way. I've stubbed my toe right out o

Re: [Numpy-discussion] returning recarray records as plain arrays

2007-01-03 Thread Pierre GM
On Wednesday 03 January 2007 15:39, Matthew Koichi Grimes wrote: > As per Stefan's help, I've made a subclass of recarray called nnvalue. > It just fixes the dtype to [('x', 'f8'), ('dx', 'f8'), ('delta', 'f8)], > and adds a few member functions. I basically treat nnvalue as a struct > with three e

[Numpy-discussion] returning recarray records as plain arrays

2007-01-03 Thread Matthew Koichi Grimes
As per Stefan's help, I've made a subclass of recarray called nnvalue. It just fixes the dtype to [('x', 'f8'), ('dx', 'f8'), ('delta', 'f8)], and adds a few member functions. I basically treat nnvalue as a struct with three equal-shaped array fields: x, dx, and delta. I'd like it if, when I re

Re: [Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread Stefan van der Walt
On Wed, Jan 03, 2007 at 04:29:10AM -0600, eric jones wrote: > I am playing around with sub-classing the new-fangled float64 objects > and friends. I really like the new ndarray subclassing features > (__array_finalize__, etc.), and was exploring whether or not the scalars > worked the same way.

Re: [Numpy-discussion] newbie: attempt at data frame

2007-01-03 Thread Sven Schreiber
Sven Schreiber schrieb: > Hi Vincent, of course it depends a little on how exactly your csv file > looks like, but if you just have column headers and the actual data, you > might try something like the following: > Ok sorry the previous thing doesn't work, I also stumbled over the strings. Here

[Numpy-discussion] subclassing float64 (and friends)

2007-01-03 Thread eric jones
Hey all, I am playing around with sub-classing the new-fangled float64 objects and friends. I really like the new ndarray subclassing features (__array_finalize__, etc.), and was exploring whether or not the scalars worked the same way. I've stubbed my toe right out of the blocks though. I

Re: [Numpy-discussion] newbie: attempt at data frame

2007-01-03 Thread Sven Schreiber
Vincent Nijs schrieb: > If there is an easy way to read array data + variable names using the csv > module it would be great if that could be added to cookbook/InputOutput. I > couldn't figure out how to do it. > > Hi Vincent, of course it depends a little on how exactly your csv file looks like