A Tuesday 06 January 2009, Timmie escrigué: > Hello, > is it possible to add data to an existing hd5-file with pytables? > I tried it and my original data got finally overwritten.
I re-read better the subject of this message, and I think that you missed to specify the 'a'ppend mode when you open the existing file. > Is there a minimal example for this? import tables f = tables.openFile(you_filename, mode='a') g = f.createGroup(f.root, 'newgroup') a = f.createArray(g, 'newarray', [1,2]) f.close() This creates a new group called 'newgroup' and a 'newarray' inside it. Cheers, -- Francesc Alted ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users