A Dijous 11 Gener 2007 21:29, Jan Strube escrigué:
> 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==item)]
> 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 way
> to do things?

This was due to the fact that I didn't realized that someone would use scalar 
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!

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to