Re: [Pytables-users] Create new Atom Class

2011-06-24 Thread Anthony Scopatz
e more sense to try to use the HDF5 links rather than paths. These, which are effectively pointers, would have a consistent size (unlike strings). However, truth be told I don't have a lot of experience with them myself. Though I would certainly be happy to take a look. Be Well Anthony >

[Pytables-users] Create new Atom Class

2011-06-24 Thread Tallhamer, Mike
hen returns the actual hdf5 node represented by the path instead of the path itself. In this way I can get all of the nice features of an indexed Table when it comes to searching for values within the records but can also retrieve large variable length datasets associated with each of the recor

Re: [Pytables-users] Create new Atom Class

2011-06-23 Thread Josh Moore
Hi Mike, you'll need to add your new classes to the __all__ list in tables/__init__.py to have them appear via "from tables import *". They are available via "import tables" since tables/__init__.py imports everything from tables/atom.py with the line "from tables.atom import *". However, ther

Re: [Pytables-users] Create new Atom Class

2011-06-22 Thread Anthony Scopatz
Hey Mike, Hmmm I don't see LinkAtom or LinkCol anywhere in my source. Can you try to determine which file they are coming from. What does type(LinkAtom) say? Be Well Anthony On Wed, Jun 22, 2011 at 6:41 PM, Tallhamer, Mike < [email protected]> wrote: > Here is some additional infor

[Pytables-users] Create new Atom Class

2011-06-22 Thread Tallhamer, Mike
I would like to create my own atom class but appear to be doing something wrong. I basically just need a StringAtom but want to define a new class with a new PyTables 'kind' of 'link' instead of 'string.' I have added the following code to the atom.py file... class LinkAtom(Atom): """ Def

Re: [Pytables-users] Create new Atom Class

2011-06-22 Thread Tallhamer, Mike
Here is some additional information on the issue... I see that if I type the following in ipython... [1] import tables I do get access to tables.LinkAtom and tables.LinkCol If I type... [2] from tables import * Neither LinkAtom or LinkCol are available. Furthermore, if I use tables.LinkCol in