Re: [Pytables-users] description of tables

2010-10-25 Thread Curiouslearn
Francesc, thanks so much! When trying to find the solution I browsed through the tutorial. However, the title of section 3.4 threw me off. This is great! And, thanks for creating this wonderful utility. On Mon, Oct 25, 2010 at 1:58 PM, Francesc Alted wrote: > A Monday 25 October 2010 19:47:30 Cu

Re: [Pytables-users] Bug caused by conflict with h5py exitfunc registered with atexit

2010-10-25 Thread Marco Lui
Hello Fransesc! > > No. That's different. It is probably PyTables fault because it should > check that other third-party library has already closed the file (i.e. > PyTables should not be the only one accessing the file). > > However, I must warn you that opening the same file with two differen

Re: [Pytables-users] how to speed up attributes access

2010-10-25 Thread David Briant
I'm wondering if it might be better creating a representation of the attributes in memory using dicts. The code I posted takes about a second at the moment and I'll need to do lots of lookups by attributes and I'll end up with thousands of tables. I'll try those changes when I'm back at work

Re: [Pytables-users] Your take on ticket #286 & #287?

2010-10-25 Thread braingateway
Francesc Alted: > A Friday 22 October 2010 20:54:21 braingateway escrigué: > >> Gaetan de Menten : >> >>> On Fri, Oct 22, 2010 at 10:53, Francesc Alted >>> > wrote: > A Friday 22 October 2010 10:45:13 Francesc Alted escrigué: > A Friday 22 October 2010 10:

Re: [Pytables-users] description of tables

2010-10-25 Thread Francesc Alted
A Monday 25 October 2010 19:47:30 Curiouslearn escrigué: > Hi, > > I am very new to Pytables. I was trying out the commands in the > tutorial and learnt that to create a new table I need to describe > columns as class variables. For example, > > import pytables > > def tableFormat(tables.IsDescr

Re: [Pytables-users] how to speed up attributes access

2010-10-25 Thread David E. Sallis
David E. Sallis said the following on 10/25/2010 12:54 PM: > 3) Next, the so-called 'double under' methods (__contains__(), __getattr__()) > are generally intended for internal use only by their containing objects. A > better way would be to use the 'in' operator; to wit (note also the binding o

Re: [Pytables-users] how to speed up attributes access

2010-10-25 Thread David E. Sallis
david.bri...@ubs.com said the following on 10/25/2010 12:19 PM: > I currently have 160 or so tables with attributes on. I wish to find the > all the tables with a certain set of attributes. This code is running a > little slow: > > def getTables(tsdb, attributes): > answer = [] > for node

Re: [Pytables-users] How to model missing data

2010-10-25 Thread Francesc Alted
A Monday 25 October 2010 19:09:46 david.bri...@ubs.com escrigué: > Hi > > I have some numeric data with missing points. Is there an equivalent > of numpy masked array in pytables or do I need to add mask field > myself? Yes, you need to add the mask explicitly yourself. Using compression is hig

[Pytables-users] description of tables

2010-10-25 Thread Curiouslearn
Hi, I am very new to Pytables. I was trying out the commands in the tutorial and learnt that to create a new table I need to describe columns as class variables. For example, import pytables def tableFormat(tables.IsDescription):    column1Name = tables.StringCol(16)    column2Name = tables.Stri

[Pytables-users] how to speed up attributes access

2010-10-25 Thread david.briant
Hi I currently have 160 or so tables with attributes on. I wish to find the all the tables with a certain set of attributes. This code is running a little slow: def getTables(tsdb, attributes): answer = [] for node in tsdb: if isinstance(node, pytables.Leaf): matches =

[Pytables-users] How to model missing data

2010-10-25 Thread david.briant
Hi I have some numeric data with missing points. Is there an equivalent of numpy masked array in pytables or do I need to add mask field myself? Thx David Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If y

Re: [Pytables-users] Your take on ticket #286 & #287?

2010-10-25 Thread Gaetan de Menten
On Mon, Oct 25, 2010 at 13:30, Francesc Alted wrote: > Now that I think, I ended implementing this behaviour because I needed a > way to pass a lot of parameters to the computational kernel.  For > passing such parameters, I implemented the next methods for `Expr`: > > * setInputsRange(start=None

Re: [Pytables-users] Bug caused by conflict with h5py exitfunc registered with atexit

2010-10-25 Thread Francesc Alted
A Saturday 23 October 2010 10:55:37 Gerrit Holl escrigué: > Hi, > > On 23 October 2010 02:52, Marco Lui wrote: > > Hello. > > > > I have been working on a project that uses pytables as a storage > > back-end. I have recently integrated a third-party module that > > makes use of the h5py library,

Re: [Pytables-users] Your take on ticket #286 & #287?

2010-10-25 Thread Francesc Alted
A Friday 22 October 2010 20:54:21 braingateway escrigué: > Gaetan de Menten : > > On Fri, Oct 22, 2010 at 10:53, Francesc Alted wrote: > >> A Friday 22 October 2010 10:45:13 Francesc Alted escrigué: > >>> A Friday 22 October 2010 10:19:50 Gaetan de Menten escrigué: > Hello, > > I