Hi,

I find myself thinking the following operation:

frames = numarray.array([row['frame'] for row in data2d.where( data2d.cols.camn == camn )])

could probably be made much faster with something like:

frames = data2d.where( data2d.cols.camn == camn )['frame']

This doesn't work currently because the __getitem__() method of the Row class expects to be operating in the context of an iterator. It returns only a single row value. Is there another idiom to access all the selected rows with a similar speed? Or is this something that could be easily added?

Cheers!
Andrew


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to