En/na Mike Romberg ha escrit::

>[...]
>   I was not aware it was :).  But this does raise a question.  Does
> copyFile() really exec a seperate h5repack process?  If so, then is it
> important to either close() or flush the file before you call
> copyFile().  If copyFile() does not flush first, I could see that
> h5repack might not see all the changes made by the open pytables File.

The ``copyFile()`` function and the ``File.copyFile()`` method use
PyTables' own methods of copying nodes, so you may rest assured that the
most recent changes to the file are copied to the new file, since no new
processes are spawned.

By the way, there is a ``ptrepack`` script in PyTables which does the
same job as ``h5repack``, but adds some PyTables-specific goodies to the
process.  (This script does not use ``h5repack`` either.)

Regards,

::

        Ivan Vilata i Balaguer   >qo<   http://www.carabos.com/
               Cárabos Coop. V.  V  V   Enjoy Data
                                  ""

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to