Re: [Numpy-discussion] RuntimeWarning: Item size computed from the PEP 3118

2010-11-17 Thread Laurent Gautier
Thanks for the reply. On 11/17/10 7:00 PM, Pauli Virtanen wrote: > > Wed, 17 Nov 2010 08:40:50 +0100, Laurent Gautier wrote: > [clip] >> > __main__:1: RuntimeWarning: Item size computed from the PEP 3118 buffer >> > format string does not match the actual item size. > [clip] >> > I tried tracin

[Numpy-discussion] half-float review/pull request

2010-11-17 Thread Mark Wiebe
I've created a ticket and a pull request for the half-float type I implemented. Since my previous email, I've moved the half implementation into npymath so modules using numpy can do half-float code as well. There are a few key things that in my mind should get some discussion before saying this

Re: [Numpy-discussion] Regrading Numpy Documentation ...

2010-11-17 Thread Nicolas Bigaouette
Chrome might have some feature where local javascript can't be executed... just an idea ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] unicode string for specifying dtype

2010-11-17 Thread Ilan Schnell
Anthony Scopatz was using trunk from June 30, 2010 and it was fixed, so updating to numpy 1.5.0 should fix it. - Ilan On Wed, Nov 17, 2010 at 6:49 PM, Venkat wrote: > I too got same error message. > I am using Ubuntu 10.04, with python 2.6.5, numpy 1:1.3.0 > > Does it require to change to some o

Re: [Numpy-discussion] unicode string for specifying dtype

2010-11-17 Thread Venkat
I too got same error message. I am using Ubuntu 10.04, with python 2.6.5, numpy 1:1.3.0 Does it require to change to some other version? Thanks & Regards Venkat On Thu, Nov 18, 2010 at 2:45 AM, Ilan Schnell wrote: > I can confirm that the TypeError appears in numpy 1.4.0, i.e. the > version i

Re: [Numpy-discussion] unicode string for specifying dtype

2010-11-17 Thread Ilan Schnell
I can confirm that the TypeError appears in numpy 1.4.0, i.e. the version in the current EPD 6.3-1. - Ilan On Wed, Nov 17, 2010 at 3:09 PM, Anthony Scopatz wrote: > Hi Antony > This seems to work for me...  What version of python/numpy are you using? > Be Well > Anthony > > On Tue, Nov 16, 2010

Re: [Numpy-discussion] unicode string for specifying dtype

2010-11-17 Thread Anthony Scopatz
Hi Antony This seems to work for me... What version of python/numpy are you using? Be Well Anthony On Tue, Nov 16, 2010 at 11:33 PM, Antony Lee wrote: > I just ran into the following: > > >>> np.dtype(u"f4") > Traceback (most recent call last): > File "", line 1, in > TypeError: data type n

[Numpy-discussion] [ANN] Blosc 1.0.3 released

2010-11-17 Thread Francesc Alted
Announcing python-blosc 1.0.3 A Python wrapper for the Blosc compression library What is it? === Blosc (http://blosc.pytables.org) is a high performance compressor optimized for bin

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Robert Kern
On Wed, Nov 17, 2010 at 13:27, Sebastian Haase wrote: > I guess you are right again - see this simplified 1d test: a = np.zeros(4, int) a > [0 0 0 0] a[ [1,3] ] += 1 a > [0 1 0 1] a[ [1,3,1] ] += 1 a > [0 2 0 2] a = np.zeros(4, int) a > [0 0 0 0]

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 8:15 PM, Robert Kern wrote: > On Wed, Nov 17, 2010 at 13:11, Sebastian Haase wrote: >> On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith wrote: >>> On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase >>> wrote: On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote:

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith wrote: > On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase wrote: >> On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote: >>> On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: Why does numpy not accept float arrays as indices ? I was

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Robert Kern
On Wed, Nov 17, 2010 at 13:11, Sebastian Haase wrote: > On Wed, Nov 17, 2010 at 7:48 PM, Nathaniel Smith wrote: >> On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase >> wrote: >>> On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote: On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: >>>

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Nathaniel Smith
On Wed, Nov 17, 2010 at 10:32 AM, Sebastian Haase wrote: > On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote: >> On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: >>> Why does numpy not accept float arrays as indices ? >>> I was very happy and quite surprised once I found out that it worked

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
On Wed, Nov 17, 2010 at 7:26 PM, Robert Kern wrote: > On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: >> Hi, > import numpy as np > a = np.arange(4) > a[1.8] >> 1 > a[ np.array(1.8) ] >> Traceback (most recent call last): >>  File "", line 1, in >> IndexError: arrays used a

Re: [Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Robert Kern
On Wed, Nov 17, 2010 at 12:20, Sebastian Haase wrote: > Hi, import numpy as np a = np.arange(4) a[1.8] > 1 a[ np.array(1.8) ] > Traceback (most recent call last): >  File "", line 1, in > IndexError: arrays used as indices must be of integer (or boolean) type > > Why does

[Numpy-discussion] Python scalar float indices into array work - but not for array indices - why ?

2010-11-17 Thread Sebastian Haase
Hi, >>> import numpy as np >>> a = np.arange(4) >>> a[1.8] 1 >>> a[ np.array(1.8) ] Traceback (most recent call last): File "", line 1, in IndexError: arrays used as indices must be of integer (or boolean) type >>> Why does numpy not accept float arrays as indices ? I was very happy and quite s

Re: [Numpy-discussion] RuntimeWarning: Item size computed from the PEP 3118

2010-11-17 Thread Pauli Virtanen
Wed, 17 Nov 2010 08:40:50 +0100, Laurent Gautier wrote: [clip] > __main__:1: RuntimeWarning: Item size computed from the PEP 3118 buffer > format string does not match the actual item size. [clip] > I tried tracing a bit further but I am a little confused by what is the > intent (a lot of nested ca