From: Francesc A. <fa...@ca...> - 2007-01-12 18:35:40
|
A Dijous 11 Gener 2007 21:29, Jan Strube escrigu=C3=A9: > Hi ! > I have a problem with the numpy datatypes and the Table.where method. > something like > for item in numpy_list: > print [row for row in table.where(table.cols.item=3D=3Ditem)] > fails, if numpy_listis a list of numpy integers. [snip] > I can make it work by casting item to an int, but I really don't want to. > (In some cases I can't) > The flavor of the table is numpy and the size (in bytes) of the datatypes > is the same > Is this a bug, or am I just doing something silly and there is a better w= ay > to do things? This was due to the fact that I didn't realized that someone would use scal= ar=20 numarray/NumPy objects as arguments for queries. Fixed in SVN: http://www.pytables.org/trac/changeset/2215/branches/std-1.4 Thanks for reporting this! =2D-=20 >0,0< Francesc Altet =C2=A0 =C2=A0 http://www.carabos.com/ V V C=C3=A1rabos Coop. V. =C2=A0=C2=A0Enjoy Data "-" |