You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h5py is happy to open the file, but barfs if you try and access the bitshuffled dataset:
In [3]: a=h5py.File('blc03_guppi_59132_36704_HIP111595_0078.rawspec.0002.h5', 'r')
In [4]: a['data']
Out[4]: <HDF5dataset"data": shape (279, 1, 65536), type "<f4">In [5]: d=a['data'][:]
---------------------------------------------------------------------------OSErrorTraceback (mostrecentcalllast)
<ipython-input-5-fee15ce54759>in<module>---->1d=a['data'][:]
h5py/_objects.pyxinh5py._objects.with_phil.wrapper()
h5py/_objects.pyxinh5py._objects.with_phil.wrapper()
~/opt/anaconda3/lib/python3.8/site-packages/h5py/_hl/dataset.pyin__getitem__(self, args)
571mspace=h5s.create_simple(mshape)
572fspace=selection.id-->573self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
574575# Patch up the output for NumPyh5py/_objects.pyxinh5py._objects.with_phil.wrapper()
h5py/_objects.pyxinh5py._objects.with_phil.wrapper()
h5py/h5d.pyxinh5py.h5d.DatasetID.read()
h5py/_proxy.pyxinh5py._proxy.dset_rw()
h5py/_proxy.pyxinh5py._proxy.H5PY_H5Dread()
OSError: Can'treaddata (filterreturnedfailureduringread)
Do you think this file is recoverable (or partly recoverable)? Is there any way to turn on extra debug info in bitshuffle to help diagnose why it fails, and/or can bitshuffle skip over 'bad' chunks?
The text was updated successfully, but these errors were encountered:
With a bit of hacking, I think you should be able to recover most of the data. First, I would just add print statements in bshuf_h5filter.c to figure out which exactly what function is returning an error code and the value of that code (the core functions of bitshuffle some some specific error codes with meanings).
Hi @kiyo-masui, we have some SETI data stored with bitshuffle compression, and a small number of files appear to have become corrupted. (Here is one, FYI: https://bldata.berkeley.edu/blpd30_datax2/blc03_guppi_59132_36704_HIP111595_0078.rawspec.0002.h5)
h5py
is happy to open the file, but barfs if you try and access the bitshuffled dataset:Do you think this file is recoverable (or partly recoverable)? Is there any way to turn on extra debug info in bitshuffle to help diagnose why it fails, and/or can bitshuffle skip over 'bad' chunks?
The text was updated successfully, but these errors were encountered: