Re: [Numpy-discussion] API, ABI compatibility

2012-09-25 Thread David Cournapeau
Ok, so since many people asked: this was sent by mistake, and intended to be a discarded draft instead. David On Tue, Sep 25, 2012 at 7:13 PM, Ralf Gommers wrote: > is a good thing:) > > > > > On Tue, Sep 25, 2012 at 2:06 PM, David Cournapeau > wrote: >> >> >> __

Re: [Numpy-discussion] API, ABI compatibility

2012-09-25 Thread Ralf Gommers
is a good thing:) On Tue, Sep 25, 2012 at 2:06 PM, David Cournapeau wrote: > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > ___

Re: [Numpy-discussion] variable number of columns in loadtxt/genfromtxt

2012-09-25 Thread Andreas Hilboll
> On Tue, Sep 25, 2012 at 2:31 AM, Andreas Hilboll wrote: >> I commonly have to deal with legacy ASCII files, which don't have a >> constant number of columns. The standard is 10 values per row, but >> sometimes, there are less columns. loadtxt doesn't support this, and in >> genfromtext, the rows

Re: [Numpy-discussion] Double-ended queues

2012-09-25 Thread Chris Barker
On Tue, Sep 25, 2012 at 4:31 AM, Sturla Molden wrote: > Also, instead of writing a linked list, consider collections.deque. > A deque is by definition a double-ended queue. It is just waste of time > to implement a deque (double-ended queue) and hope it will perform > better than Python's standard

Re: [Numpy-discussion] variable number of columns in loadtxt/genfromtxt

2012-09-25 Thread Chris Barker
On Tue, Sep 25, 2012 at 2:31 AM, Andreas Hilboll wrote: > I commonly have to deal with legacy ASCII files, which don't have a > constant number of columns. The standard is 10 values per row, but > sometimes, there are less columns. loadtxt doesn't support this, and in > genfromtext, the rows which

Re: [Numpy-discussion] ANN: NumPy 1.7.0b2 release

2012-09-25 Thread Charles R Harris
On Tue, Sep 25, 2012 at 8:56 AM, Charles R Harris wrote: > > > On Thu, Sep 20, 2012 at 12:24 AM, Ondřej Čertík > wrote: > >> Hi, >> >> I'm pleased to announce the availability of the second beta release of >> NumPy 1.7.0b2. >> >> Sources and binary installers can be found at >> https://sourcefor

Re: [Numpy-discussion] ANN: NumPy 1.7.0b2 release

2012-09-25 Thread Charles R Harris
On Thu, Sep 20, 2012 at 12:24 AM, Ondřej Čertík wrote: > Hi, > > I'm pleased to announce the availability of the second beta release of > NumPy 1.7.0b2. > > Sources and binary installers can be found at > https://sourceforge.net/projects/numpy/files/NumPy/1.7.0b2/ > > Please test this release and

Re: [Numpy-discussion] ANN: NumPy 1.7.0b2 release

2012-09-25 Thread Frédéric Bastien
Hi, thanks for that script. It seam very useful for that case. As other people know about this problem, I won't need to bisect. thanks Fred On Mon, Sep 24, 2012 at 6:52 PM, Pauli Virtanen wrote: > 25.09.2012 00:55, Frédéric Bastien kirjoitti: >> On Mon, Sep 24, 2012 at 5:47 PM, Charles R Harr

Re: [Numpy-discussion] Double-ended queues

2012-09-25 Thread Charles R Harris
On Tue, Sep 25, 2012 at 6:50 AM, Nathaniel Smith wrote: > On Tue, Sep 25, 2012 at 12:31 PM, Sturla Molden wrote: > > On 25.09.2012 11:38, Nathaniel Smith wrote: > > > >> Implementing a ring buffer on top of ndarray would be pretty > >> straightforward and probably work better than a linked-list

Re: [Numpy-discussion] ANN: NumPy 1.7.0b2 release

2012-09-25 Thread Nathaniel Smith
On Tue, Sep 25, 2012 at 1:27 AM, Ondřej Čertík wrote: > On Mon, Sep 24, 2012 at 3:49 PM, Nathaniel Smith wrote: >> On Mon, Sep 24, 2012 at 10:47 PM, Charles R Harris >> wrote: >>> >>> >>> On Mon, Sep 24, 2012 at 2:25 PM, Frédéric Bastien wrote: Hi, I tested this new beta on

Re: [Numpy-discussion] Double-ended queues

2012-09-25 Thread Nathaniel Smith
On Tue, Sep 25, 2012 at 12:31 PM, Sturla Molden wrote: > On 25.09.2012 11:38, Nathaniel Smith wrote: > >> Implementing a ring buffer on top of ndarray would be pretty >> straightforward and probably work better than a linked-list >> implementation. > > Amazingly, many do not know that a ringbuffer

[Numpy-discussion] API, ABI compatibility

2012-09-25 Thread David Cournapeau
___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Double-ended queues

2012-09-25 Thread Sturla Molden
On 25.09.2012 11:38, Nathaniel Smith wrote: > Implementing a ring buffer on top of ndarray would be pretty > straightforward and probably work better than a linked-list > implementation. Amazingly, many do not know that a ringbuffer is simply an array indexed modulus its length: foo = np.zeros(

Re: [Numpy-discussion] Long-standing issue with using numpy in embedded CPython

2012-09-25 Thread Aron Ahmadia
Can you expand a bit? Are you trying to disable threads at compile-time or at run-time? Which threaded functionality are you trying to disable? Are you using numpy as a computational library with multiple threads making calls into its functions? I think NPY_ALLOW_THREADS is for interacting with

Re: [Numpy-discussion] Double-ended queues

2012-09-25 Thread Nathaniel Smith
On Tue, Sep 25, 2012 at 10:03 AM, William Furnass wrote: > Hi all, > > I want to be able to within a loop a) apply a mathematical operation > to all elements in a vector (can be done atomically) then b) pop zero > or more elements from one end of the vector and c) push zero or more > elements on t

[Numpy-discussion] variable number of columns in loadtxt/genfromtxt

2012-09-25 Thread Andreas Hilboll
Hi, I commonly have to deal with legacy ASCII files, which don't have a constant number of columns. The standard is 10 values per row, but sometimes, there are less columns. loadtxt doesn't support this, and in genfromtext, the rows which have less than 10 values are excluded from the resulting ar

[Numpy-discussion] Double-ended queues

2012-09-25 Thread William Furnass
Hi all, I want to be able to within a loop a) apply a mathematical operation to all elements in a vector (can be done atomically) then b) pop zero or more elements from one end of the vector and c) push zero or more elements on to the other end. So far I've used a collections.deque to store my ve

Re: [Numpy-discussion] Long-standing issue with using numpy in embedded CPython

2012-09-25 Thread Raphael de Feraudy
Yang Zhang gmail.com> writes: > > > I'm curious how to disable threads in numpy (not an ideal solution). > > Googling seems to point me to setting NPY_ALLOW_THREADS to > > 0somewhere. > > Anyone? > It's appearing to me I had to face this very issue, which I reported @Numpy TRAC : http://p