From: Francesc A. <fa...@ca...> - 2005-07-18 18:05:51
|
A Monday 18 July 2005 16:39, travlr va escriure: > > However, your suggestion is quite good, and implementing it is a matter > > of adding a new case in the Column.__getitem__() special method. > > Something like: > > > > [...] > > elif isinstance(key, numarray): > > return self.table.readCoordinates(key, self.name <http://self.name>) > > This is terrific. I'd also like to mention two things... setting the attr > vals via file.root.group.table.cols.blah[idx] =3D array ...would also be > great. I believe this syntax congruency (a la numarray) should also be > extended to (py)tables.tables and (py)tables.array objects. Good suggestion. We will see what can we do. Nevertheless, it would be great if you can contribute the code (and docs) yourself. > I got an Error tossing in your patch : > > [...] > elif isinstance(key, numarray.numarraycore.NumArray): > return self.table.readCoordinates(key, self.name <http://self.name>) > [...] Yes. This is a bug in readCoordinates. Try applying the attached patch as well. Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |