[Pytables-users] ReadWhere() with a Time64Col in the condition

2013-04-10 Thread Julio Trevisan
Hi, I am using a Time64Col called timestamp in a condition, and I noticed that the condition does not work (i.e., no rows are selected) if I write something as: for row in node.where(timestamp == %f % t): ... However, I had this idea of dividing the values by, say 1000, and it does work:

Re: [Pytables-users] ReadWhere() with a Time64Col in the condition

2013-04-10 Thread Anthony Scopatz
On Wed, Apr 10, 2013 at 7:44 AM, Julio Trevisan juliotrevi...@gmail.comwrote: Hi, I am using a Time64Col called timestamp in a condition, and I noticed that the condition does not work (i.e., no rows are selected) if I write something as: for row in node.where(timestamp == %f % t):

Re: [Pytables-users] ReadWhere() with a Time64Col in the condition

2013-04-10 Thread Anthony Scopatz
On Wed, Apr 10, 2013 at 11:40 AM, Julio Trevisan juliotrevi...@gmail.comwrote: Hi Anthony Thanks again.* *If it is a problem related to floating-point precision, I might use an Int64Col instead, since I don't need the timestamp miliseconds. Another good plan since integers are exact ;)