[Pytables-users] writing metadata

2013-06-25 Thread Andre' Walker-Loud
Dear PyTables users, I am trying to figure out the best way to write some metadata into some files I have. The hdf5 file looks like /root/data_1/stat /root/data_1/sys where stat and sys are Arrays containing statistical and systematic fluctuations of numerical fits to some data I have. What

Re: [Pytables-users] writing metadata

2013-06-25 Thread Josh Ayers
Another option is to create a Python object - dict, list, or whatever works - containing the metadata and then store a pickled version of it in a PyTables array. It's nice for this sort of thing because you have the full flexibility of Python's data containers. For example, if the Python object

Re: [Pytables-users] writing metadata

2013-06-25 Thread Anthony Scopatz
Also, depending on how much meta data you really needed to store you could just use attributes. That is what they are there for. On Tue, Jun 25, 2013 at 10:06 AM, Josh Ayers josh.ay...@gmail.com wrote: Another option is to create a Python object - dict, list, or whatever works - containing

Re: [Pytables-users] writing metadata

2013-06-25 Thread Andre' Walker-Loud
Hi Andreas, Josh, Anthony and Antonio, Thanks for your help. Andre On Jun 26, 2013, at 2:48 AM, Antonio Valentino wrote: Hi Andre', Il 25/06/2013 10:26, Andre' Walker-Loud ha scritto: Dear PyTables users, I am trying to figure out the best way to write some metadata into some