A Thursday 10 July 2008, Maarten Sneep escrigué: > On 10 jul 2008, at 15:45, dragan savic wrote: > > I have been using table.readWhere to filter data by conditions. If > > I give a condition like '10 < Col1 < 100' the lower limit doesn't > > work. In the result I get values that are less then 10. Is this a > > bug or am I not using the table.readWhere method as I should? > > I don't think the filter is interpreted in Python, and the double > filter therefore does not work. > > '(Col1 > 10) & (Col1 < 100)' > > should work (not tested). See > http://www.pytables.org/docs/manual/apb.html for syntax details of > the condition. I must that after reading that it still isn't clear to > me why your syntax does not work.
This is in fact a FAQ: http://www.pytables.org/moin/FAQ#head-8fa4437fc863fdd03b83847580acd4cc380f1d2e Cheers, -- Francesc Alted Freelance developer Tel +34-964-282-249 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Pytables-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pytables-users
