[Numpy-discussion] Test if one element of string array is in a defined list

2010-03-22 Thread Eric Emsellem
Hi I would like to test whether strings in a numpy S array are in a given list but I don't manage to do so. Any hint is welcome. === # So here is an example of what I would like to do # I have a String numpy array: import numpy as num Sarray

[Numpy-discussion] Author NumPy books- Packt Publishing

2010-03-22 Thread Kshipra Singh
Hi All, I am writing to you for Packt Publishing, the publishers of computer related books. We are planning to extend our catalogue of books based on Scientific Computing Tools and are currently inviting authors interested in writing for Packt. This doesn't need any previous writing

[Numpy-discussion] PEP 384

2010-03-22 Thread Neal Becker
I'm thinking PEP 384, if approved, would require a lot of redesign to numpy. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Test if one element of string array is in a defined list

2010-03-22 Thread Neil Crighton
Eric Emsellem eemselle at eso.org writes: Hi I would like to test whether strings in a numpy S array are in a given list but I don't manage to do so. Any hint is welcome. === # So here is an example of what I would like to do # I

[Numpy-discussion] using sunperf for compiling scipy and numpy

2010-03-22 Thread Wolfgang Kerzendorf
Dear all, I would like to use the sunperf libraries when compiling scipy and numpy. I tried using setupscons.py which seems to check from SUNPERF libraries, but it didnt recognize where mine are: here is a listing of /pkg/linux/SS12/sunstudio12.1 (thats where the sunperf library lives):

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-22 Thread Ryan May
On Sun, Mar 21, 2010 at 11:57 PM, josef.p...@gmail.com wrote: On Mon, Mar 22, 2010 at 12:49 AM, Ryan May rma...@gmail.com wrote: Hi, I found that trapz() doesn't work with subclasses: http://projects.scipy.org/numpy/ticket/1438 A simple patch (attached) to change asarray() to asanyarray()

Re: [Numpy-discussion] Help!!! Docstrings overrun by markup crap.

2010-03-22 Thread Ralf Gommers
On Mon, Mar 22, 2010 at 12:27 AM, Alan G Isaac ais...@american.edu wrote: On 3/21/2010 12:54 AM, Ralf Gommers wrote: too many blank lines are needed On Sun, Mar 21, 2010 at 9:51 PM, Alan G Isaac ais...@american.edu mailto:ais...@american.edu wrote: Please define need after seeing

Re: [Numpy-discussion] Help!!! Docstrings overrun by markup crap.

2010-03-22 Thread Ralf Gommers
On Mon, Mar 22, 2010 at 7:07 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 21, 2010 at 8:53 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, Mar 21, 2010 at 10:41 PM, josef.p...@gmail.com wrote: 3. List with multi-line items are broken only inside the

Re: [Numpy-discussion] [OT] Starving CPUs article featured in IEEE's ComputingNow portal

2010-03-22 Thread James Bergstra
On Sun, Mar 21, 2010 at 1:13 PM, Sebastian Walter sebastian.wal...@gmail.com wrote: On Fri, Mar 19, 2010 at 11:18 PM, David Warde-Farley d...@cs.toronto.edu wrote: On 19-Mar-10, at 1:13 PM, Anne Archibald wrote: I'm not knocking numpy; it does (almost) the best it can. (I'm not sure of the

Re: [Numpy-discussion] [OT] Starving CPUs article featured in IEEE's ComputingNow portal

2010-03-22 Thread Pauli Virtanen
la, 2010-03-20 kello 17:36 -0400, Anne Archibald kirjoitti: I was in on that discussion. My recollection of the conclusion was that on the one hand they're useful, carefully applied, while on the other hand they're very difficult to reliably detect (since you don't want to forbid operations on

Re: [Numpy-discussion] [OT] Starving CPUs article featured in IEEE's ComputingNow portal

2010-03-22 Thread Anne Archibald
On 22 March 2010 14:42, Pauli Virtanen p...@iki.fi wrote: la, 2010-03-20 kello 17:36 -0400, Anne Archibald kirjoitti: I was in on that discussion. My recollection of the conclusion was that on the one hand they're useful, carefully applied, while on the other hand they're very difficult to

Re: [Numpy-discussion] integer division rule changed

2010-03-22 Thread Alan G Isaac
On 3/13/2010 8:57 PM, Charles R Harris wrote: I suspect the change was made, whenever that was, in order to conform to python. So is there an actual polcy? When C99 behavior and Python behavior differ, will NumPy follow Python as a *rule*? Thanks, Alan Isaac

Re: [Numpy-discussion] integer division rule changed

2010-03-22 Thread Charles R Harris
On Mon, Mar 22, 2010 at 4:11 PM, Alan G Isaac ais...@american.edu wrote: On 3/13/2010 8:57 PM, Charles R Harris wrote: I suspect the change was made, whenever that was, in order to conform to python. So is there an actual polcy? When C99 behavior and Python behavior differ, will NumPy