Re: [Pytables-users] newbie questions

2007-10-12 Thread Bryan Lawrence
Elias With your hint, I was able to do this: for a in ff: x= a._v_attrs l=x._f_list() for i in l: print x.__getattr__(i) I suspect there might be a more 'pytables' way of doing the last step, but I'm in business now. Thanks !!! Bryan On Friday 12 October 2007 14:25:07

Re: [Pytables-users] newbie questions

2007-10-12 Thread elias . collas
Bryan, in my previous reply, I should have noted that to see the attributes in the AttributeSet, you'll have to iterate through them as well. The print statement won't show the attributes themselves. Sorry about that! If you're in an interactive session, you can just type the node without a print

Re: [Pytables-users] newbie questions

2007-10-12 Thread elias . collas
Hi Bryan and welcome! Not a pytables solution, but you can use the 'h5ls' utility that comes with HDF5 h5ls -v blah.hdf to get at what you're after. Of course, there is also a way to do this with a python/pytables script using the ._v_attrs property on each node. See note in your script below.

[Pytables-users] newbie questions

2007-10-12 Thread Bryan Lawrence
hi Folks I have an hdf5 file created by another application that I wish to read into python via pytables. I'm an hdf5 novice and basically want to remain so ... I'm also a pytables novice, but am happy to learn a bit more since python is my addiction of choice. After mucking around with h5dum