From: Aquil H. A. <aqu...@gm...> - 2012-11-08 16:58:21
|
Thanks Anthony, This also did the trick: import tables h5f_in = tables.open('CO.h5) tbl_in = h5f_in.root.CO.DATA h5f_out = tables.openFile('test.h5', 'w') g = h5f_out.createGroup('/','CO') ot = tbl.copy(newparent=g) -- Aquil H. Abdullah "I never think of the future. It comes soon enough" - Albert Einstein On Thursday, November 8, 2012 at 11:19 AM, Anthony Scopatz wrote: > Hey Aquil, > > I think File.copyNode() [1] with the newparent argument as group on another file will do what you want. > > Be Well > Anthony > > 1. http://pytables.github.com/usersguide/libref/file_class.html?highlight=copy#tables.File.copyNode > > > On Thu, Nov 8, 2012 at 10:02 AM, Aquil H. Abdullah <aqu...@gm... (mailto:aqu...@gm...)> wrote: > > I create the tables in an HDF5 file from three different python processes. I needed to modify one of the processes, but not the others. Is there an easy way to copy the two tables that did not change to the new file? > > > > -- > > Aquil H. Abdullah > > "I never think of the future. It comes soon enough" - Albert Einstein > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_nov > > _______________________________________________ > > Pytables-users mailing list > > Pyt...@li... (mailto:Pyt...@li...) > > https://lists.sourceforge.net/lists/listinfo/pytables-users > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > > _______________________________________________ > Pytables-users mailing list > Pyt...@li... (mailto:Pyt...@li...) > https://lists.sourceforge.net/lists/listinfo/pytables-users > > |