A Divendres 03 Març 2006 19:16, Francesco Tabani va escriure:
> I thought that a syntax like:
>
> res = [x for x in lab.II_0 if lab.II_0.cols.time == t and x['lab'] == 'SC']
>
> would work, but I get a bunch of fake records instead.

Also, why are you using the condition:

lab.II_0.cols.time == t

instead of:

x['time'] == t

?

Note that the first condition is badly stated (lab.II_0.cols.time is
an accessor to the *whole* column, not the value of the field in the
actual row).

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



-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to