Re: [Pytables-users] Follow-up on nested structures

2006-08-21 Thread Jan Strube
Oh, and yet another question: In my structure, I have scalar and vectorial quantities. How can I determine which is which on an unfilled table ? I am trying row.getTable().col(column_name).ndim, but that seems only to work on filled tables. In my case it simply returns 1 for all columns. Is there

Re: [Pytables-users] Follow-up on nested structures

2006-08-21 Thread Jan Strube
Hi Francesc, thanks a lot for your help with this. I decided to go with the following approach: Every Particle really only ever has 3 daughters, each of which looks different from the parent. So the best structure to use is a nested tuple: Now: Please have a look at the attached file. running t