Re: [Pytables-users] Some method like a "table.readWhereSorted"

2013-04-15 Thread Anthony Scopatz
On Mon, Apr 15, 2013 at 9:40 AM, Julio Trevisan wrote: > Hi Anthony > > Thanks for adding this issue. > > Is there a way to use CS indexes to get the row coordinates satisfying a > simple condition sorted by the column in the condition? I would like to > avoid using numpy.sort() since the sorting

Re: [Pytables-users] Some method like a "table.readWhereSorted"

2013-04-15 Thread Julio Trevisan
Hi Anthony Thanks for adding this issue. Is there a way to use CS indexes to get the row coordinates satisfying a simple condition sorted by the column in the condition? I would like to avoid using numpy.sort() since the sorting order is probably already available within the index information. M

Re: [Pytables-users] Some method like a "table.readWhereSorted"

2013-04-11 Thread Anthony Scopatz
Thanks for bringing this up, Julio. Hmm I don't think that this exists currently, but since there are readWhere() and readSorted() it shouldn't be too hard to implement. I have opened issue #225 to this effect. Pull requests welcome! https://github.com/PyTables/PyTables/issues/225 Be Well Anth

Re: [Pytables-users] Some method like a "table.readWhereSorted"

2013-04-10 Thread Dr. Louis Wicker
I am also interested in the this capability, if it exists in some way... Lou On Apr 10, 2013, at 12:35 PM, Julio Trevisan wrote: > Hi, > > Is there a way that I could have the ability of readWhere (i.e., specify > condition, and fast result) but also using a CSIndex so that the rows come > s

[Pytables-users] Some method like a "table.readWhereSorted"

2013-04-10 Thread Julio Trevisan
Hi, Is there a way that I could have the ability of readWhere (i.e., specify condition, and fast result) but also using a CSIndex so that the rows come sorted in a particular order? I checked readSorted() but it is iterative and does not allow to specify a condition. Julio --