Re: [Numpy-discussion] FYI: New "select-multiple-fields" behavior

2009-02-11 Thread Travis E. Oliphant
Stéfan van der Walt wrote: > Hi Travis > > 2009/2/12 Travis E. Oliphant : > >> ary['field1', 'field3'] raises an error >> ary[['field1', 'field3']] is the correct spelling and returns a copy of >> the data in those fields in a new array. >> > > Is there absolutely no way of returning the r

Re: [Numpy-discussion] FYI: New "select-multiple-fields" behavior

2009-02-11 Thread Stéfan van der Walt
Hi Travis 2009/2/12 Travis E. Oliphant : > ary['field1', 'field3'] raises an error > ary[['field1', 'field3']] is the correct spelling and returns a copy of > the data in those fields in a new array. Is there absolutely no way of returning the result as a view? Regards Stéfan __

[Numpy-discussion] FYI: New "select-multiple-fields" behavior

2009-02-11 Thread Travis E. Oliphant
Hi all, As of r6358, I checked in the functionality to allow selection by multiple fields along with a couple of tests. ary['field1', 'field3'] raises an error ary[['field1', 'field3']] is the correct spelling and returns a copy of the data in those fields in a new array. -Travis _