Re: [Pytables-users] Caching Nodes and Files

2009-08-04 Thread Anthony Foglia
Francesc Alted wrote: > Maybe what you are after is to personalize the behaviour of the `atexit` > hook when exiting PyTables. See at: > > http://pytables.org/moin/UserDocuments/AtexitHooks > > and tell me if this helps. I don't think it will for two reasons, one serious, the other mino

Re: [Pytables-users] Caching Nodes and Files

2009-08-04 Thread Francesc Alted
Hi Anthony, El dl 03 de 08 del 2009 a les 16:08 -0400, en/na Anthony Foglia va escriure: > Anthony Foglia wrote: > [...] > > Now in trying to abstract the disk storage, I'm having trouble > > figuring out how to keep track of the open files, and knowing when to > > close them. I'm keeping a

Re: [Pytables-users] Caching Nodes and Files

2009-08-03 Thread Anthony Foglia
Anthony Foglia wrote: [...] Now in trying to abstract the disk storage, I'm having trouble figuring out how to keep track of the open files, and knowing when to close them. I'm keeping a list of weakrefs to nodes in the file, and when they all go away, I try to close the file, but I get an

[Pytables-users] Caching Nodes and Files

2009-07-31 Thread Anthony Foglia
We're using HDF5 files for the base file format of our data, and I've been trying to write a reader/writer library in Python that hides all the PyTables stuff (so the same objects can be used on in memory objects). But I've been having problems determining which files can be closed and when.