Re: [Numpy-discussion] Use of PyArray FromAny() with a PyArrayInterface object

2007-10-12 Thread Travis E. Oliphant
Neal Becker wrote: > Matthieu Brucher wrote: > > >> 2007/10/12, Alan G Isaac <[EMAIL PROTECTED]>: >> >>> On Fri, 12 Oct 2007, Matthieu Brucher apparently wrote: >>> I'm trying to understand (but perhaps everything is in the numpy book in which case I'd rather buy the book >

Re: [Numpy-discussion] Use of PyArray FromAny() with a PyArrayInterface object

2007-10-12 Thread Matthieu Brucher
> > > I don't see the text string '__array' anywhere in this book. > I saw something a subchapter with the PyArrayInterface, nothing around it with __array__ or __array_struct__ ? Matthieu (wating for the book :)) ___ Numpy-discussion mailing list Numpy

Re: [Numpy-discussion] Use of PyArray FromAny() with a PyArrayInterface object

2007-10-12 Thread Neal Becker
Matthieu Brucher wrote: > 2007/10/12, Alan G Isaac <[EMAIL PROTECTED]>: >> >> On Fri, 12 Oct 2007, Matthieu Brucher apparently wrote: >> > I'm trying to understand (but perhaps everything is in the >> > numpy book in which case I'd rather buy the book >> > immediately) how to use the PyArray_FromA

Re: [Numpy-discussion] Use of PyArray FromAny() with a PyArrayInterface object

2007-10-12 Thread Matthieu Brucher
2007/10/12, Alan G Isaac <[EMAIL PROTECTED]>: > > On Fri, 12 Oct 2007, Matthieu Brucher apparently wrote: > > I'm trying to understand (but perhaps everything is in the > > numpy book in which case I'd rather buy the book > > immediately) how to use the PyArray_FromAny() function. > > This function

Re: [Numpy-discussion] Use of PyArray FromAny() wi th a PyArrayInterface object

2007-10-12 Thread Alan G Isaac
On Fri, 12 Oct 2007, Matthieu Brucher apparently wrote: > I'm trying to understand (but perhaps everything is in the > numpy book in which case I'd rather buy the book > immediately) how to use the PyArray_FromAny() function. This function is discussed in the NumPy Book. I see perhaps a dozen r

Re: [Numpy-discussion] abstraction and interfaces

2007-10-12 Thread Alan G Isaac
On Fri, 12 Oct 2007, Renato Serodio apparently wrote: > The scripts that produce these metrics use Scipy/Numpy > functions that operate on data conveniently converted to > numpy arrays. They're quite specific, and I tend to > produce/tweak a lot of them. So, to fit in this > application someone

[Numpy-discussion] abstraction and interfaces

2007-10-12 Thread Renato Serodio
Hello there, I use NumPy/SciPy to process telemetry, producing some metrics that I plot with matplotlib. Well, I want to package my scripts into a sort of all-wrapping application, i.e, the user just calls the app, selects which metrics to produce and waits to obtain the plots, without being expos

[Numpy-discussion] Use of PyArray_FromAny() with a PyArrayInterface object

2007-10-12 Thread Matthieu Brucher
Hi, I'm trying to understand (but perhaps everything is in the numpy book in which case I'd rather buy the book immediately) how to use the PyArray_FromAny() function. Suppose I have a C object (created by Pyrex or SWIG or Boost.Python) that has the __array_struct__ attribute. Can I pass this obje

Re: [Numpy-discussion] For review: first milestone of scons support in numpy

2007-10-12 Thread David Cournapeau
Pearu Peterson wrote: > > Yes. I was considering the situations where distutils in not used at > all. May be it will be relevant in future.. > If distutils is not used at all, there will be more difficult problems to solve than this one, then. I think it is safe to assume that distutils will sta

Re: [Numpy-discussion] For review: first milestone of scons support in numpy

2007-10-12 Thread Pearu Peterson
David Cournapeau wrote: > Pearu Peterson wrote: >> My point was that >> >>root/numpy/linalg > scons >> >> should work (without the -u option). > Since scons is called by distutils, and never by the user, I don't see > how this can be a problem ? distutils would have to figure out when to