Re: [Numpy-discussion] recarray field names

2006-07-10 Thread Erin Sheldon
On 7/11/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Erin Sheldon wrote: > > Just tested the lastest SVN and it works as advertised. Thanks > > Travis. > > > > An unrelated question: why does this work for arrays but not recarrays? > > > > > > In [24]: mydescriptor = > > [('age',float64),('N

Re: [Numpy-discussion] recarray field names

2006-07-10 Thread Travis Oliphant
Erin Sheldon wrote: > Just tested the lastest SVN and it works as advertised. Thanks > Travis. > > An unrelated question: why does this work for arrays but not recarrays? > > > In [24]: mydescriptor = > [('age',float64),('Nchildren',int8),('weight',float32)] > > In [25]: a = array([(64,2,75.0)

Re: [Numpy-discussion] recarray field names

2006-07-10 Thread Erin Sheldon
Just tested the lastest SVN and it works as advertised. Thanks Travis. An unrelated question: why does this work for arrays but not recarrays? In [24]: mydescriptor = [('age',float64),('Nchildren',int8),('weight',float32)] In [25]: a = array([(64,2,75.0),(25,0,60.0)], dtype=mydescriptor)

Re: [Numpy-discussion] recarray field names

2006-07-10 Thread Travis Oliphant
John Parejko wrote: >Howdy! I just wanted to voice my agreement with this statment by Erin Sheldon: > > > I brought up the issue a while back of having a simple way to > > access the field names of an array. The quick summary: accessing > > field names has some oddness that needs cleaning up. > >

Re: [Numpy-discussion] recarray field names

2006-07-10 Thread Travis Oliphant
John Parejko wrote: >Howdy! I just wanted to voice my agreement with this statment by Erin Sheldon: > > > I brought up the issue a while back of having a simple way to > > access the field names of an array. The quick summary: accessing > > field names has some oddness that needs cleaning up. > >

Re: [Numpy-discussion] recarray field names

2006-07-10 Thread John Parejko
Howdy! I just wanted to voice my agreement with this statment by Erin Sheldon: > I brought up the issue a while back of having a simple way to > access the field names of an array. The quick summary: accessing > field names has some oddness that needs cleaning up. Sometimes a['name'], sometim

[Numpy-discussion] recarray field names

2006-07-09 Thread Erin Sheldon
Hi everyone - (sigh) These gmail issues are really annoying...so I apologize if the gmail version of this message shows up in a few days. I brought up the issue a while back of having a simple way to access the field names of an array. The quick summary: accessing field names has some oddness th

Re: [Numpy-discussion] recarray field names

2006-07-08 Thread Erin Sheldon
It was suggested that I put off this discussion until we were closer to the 1.0 release. Perhaps now is a good time to bring it up once again? The quick summary: accessing field names has some oddness that needs cleaning up. On 3/15/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Fernando Perez