Re: [Numpy-discussion] rc1 of the chebyshev module.

2009-10-03 Thread Charles R Harris
On Sat, Oct 3, 2009 at 7:12 PM, Charles R Harris wrote: > Attached is the first rc of the chebyshev module. The module documentation > is not yet complete and no doubt the rest of the documentation needs to be > reviewed. The tests cover basic functionality at this point but need to be > extended

Re: [Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Christopher Barker
Gökhan Sever wrote: > Thanks for working on this. This append() method is a very handy for me, > when working with lists. It is exiting to hear that it will be ported to > ndarrays as well. not exactly ported -- this will be a special, limited-use class. > Any plans for insert() ? I wouldn't

Re: [Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Gökhan Sever
On Sat, Oct 3, 2009 at 2:26 AM, Christopher Barker wrote: > Hasi all, > > This idea was inspired by a discussion at SciPY, in which we spent a > LOT of time during the numpy tutorial talking about how to accumulate > values in an array when you don't know how big the array needs to be > when you

Re: [Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Dag Sverre Seljebotn
Christopher Barker wrote: > OK -- this one I'm intending to send! > > Hi all, > > This idea was inspired by a discussion at the SciPy conference, in which > we spent a LOT of time during the numpy tutorial talking about how to > accumulate values in an array when you don't know how big the array

Re: [Numpy-discussion] ufunc and errors

2009-10-03 Thread Dag Sverre Seljebotn
Robert Kern wrote: > On Wed, Sep 30, 2009 at 09:34, Dag Sverre Seljebotn > wrote: >> I looked and looked in the docs, but couldn't find an answer to this: >> When writing a ufunc, is it possible somehow to raise a Python exception >> (by acquiring the GIL first to raise it, set a flag and a callba

[Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Christopher Barker
OK -- this one I'm intending to send! Hi all, This idea was inspired by a discussion at the SciPy conference, in which we spent a LOT of time during the numpy tutorial talking about how to accumulate values in an array when you don't know how big the array needs to be when you start. The "stand

[Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Christopher Barker
(I clicked send too early the last time -- sorry about that!) Hi all, This idea was inspired by a discussion at the SciPy conference, in which we spent a LOT of time during the numpy tutorial talking about how to accumulate values in an array when you don't know how big the array needs to be wh

Re: [Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Robert Kern
On Sat, Oct 3, 2009 at 02:26, Christopher Barker wrote: > The implementation I have now uses a regular numpy array as the > "buffer". The buffer is re-sized as needed with ndarray.resize(). I've > enclosed the class, a bunch of tests (This is the first time I've ever > really done test-driven deve

[Numpy-discussion] A numpy accumulator...

2009-10-03 Thread Christopher Barker
Hasi all, This idea was inspired by a discussion at SciPY, in which we spent a LOT of time during the numpy tutorial talking about how to accumulate values in an array when you don't know how big the array needs to be when you start. The "standard practice" is to accumulate in a python list,