Andrew Straw
2006-03-08 17:17:47 UTC
Hi,
I looks like I may have lost the results of last nights' experiments by
doing a Ctrl-C to quit my Python program writing hdf5 files using
pytables rather than doing it nicely. :( Obviously, this is something I
won't do again in the future, but do I have any hope to rescue my hdf5
file? I presume it's only the last few rows in the tables that are
causing a problem, but even tools like h5ls don't work:
$ h5ls DATA20060307_204746.h5
DATA20060307_204746.h5: unable to open file
$ python
Python 2.3.5 (#2, Nov 3 2005, 02:44:38)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1, in ?
File "build/bdist.linux-x86_64/egg/tables/File.py", line 225, in openFile
File "hdf5Extension.pyx", line 599, in hdf5Extension.File.__new__
IOError: file ``DATA20060307_204746.h5`` exists but it is not an HDF5 file
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
I looks like I may have lost the results of last nights' experiments by
doing a Ctrl-C to quit my Python program writing hdf5 files using
pytables rather than doing it nicely. :( Obviously, this is something I
won't do again in the future, but do I have any hope to rescue my hdf5
file? I presume it's only the last few rows in the tables that are
causing a problem, but even tools like h5ls don't work:
$ h5ls DATA20060307_204746.h5
DATA20060307_204746.h5: unable to open file
$ python
Python 2.3.5 (#2, Nov 3 2005, 02:44:38)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import tables
h5file=tables.openFile('DATA20060307_204746.h5')
Traceback (most recent call last):h5file=tables.openFile('DATA20060307_204746.h5')
File "<stdin>", line 1, in ?
File "build/bdist.linux-x86_64/egg/tables/File.py", line 225, in openFile
File "hdf5Extension.pyx", line 599, in hdf5Extension.File.__new__
IOError: file ``DATA20060307_204746.h5`` exists but it is not an HDF5 file
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642