Re: [Numpy-discussion] Error creating an array

2008-08-05 Thread Travis E. Oliphant
Sameer DCosta wrote: > On Tue, Aug 5, 2008 at 2:35 PM, Travis E. Oliphant > <[EMAIL PROTECTED]> wrote: > > >> You must uses tuples for the individual "records" when constructing >> arrays with the "array" command. >> > > Thanks Travis. Is there a reason why numpy insists on tuples? > Yea

Re: [Numpy-discussion] Error creating an array

2008-08-05 Thread Sameer DCosta
On Tue, Aug 5, 2008 at 2:35 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > You must uses tuples for the individual "records" when constructing > arrays with the "array" command. Thanks Travis. Is there a reason why numpy insists on tuples? Anyway, moving on, this brings me to the real proble

Re: [Numpy-discussion] Error creating an array

2008-08-05 Thread Travis E. Oliphant
Sameer DCosta wrote: > Im having a little trouble creating a numpy array with a specific > dtype. I can create the array b with dtype=int, but not with the dtype > I want. Any idea what I am doing wrong here? > You must uses tuples for the individual "records" when constructing arrays with the

[Numpy-discussion] Error creating an array

2008-08-05 Thread Sameer DCosta
Im having a little trouble creating a numpy array with a specific dtype. I can create the array b with dtype=int, but not with the dtype I want. Any idea what I am doing wrong here? In [450]: import numpy as np In [451]: print np.__version__ 1.2.0.dev5243 In [452]: dtype=np.dtype([('spam', ' 1