I'm trying to read data from the attached hdf5 file (for those interested, it's generated by an X-ray detector called an Eiger 1M, made by Dectris. Google will get you the rest of the way). It should be pretty straightforward. I did a little noodling around, found the right keys, and managed to get a data set of the size I expected. The problem is, I get an error when I try to retrieve data from it.
In [1]: run load_test.py
Summary of the h5py configuration
---------------------------------
h5py 2.6.0
HDF5 1.8.13
Python 2.7.11 | 64-bit | (default, Jun 11 2016, 03:41:56)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
sys.platform darwin
sys.maxsize 9223372036854775807
numpy 1.10.4
<HDF5 dataset "data": shape (1, 1065, 1030), type "<u4">
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
/Users/jbh246/Desktop/fabio/load_test.py in <module>()
64 print dataset
65
---> 66 my_data = dataset[0]
67
68 my_file.close()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2687)()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2645)()
/Users/jbh246/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/h5py/_hl/dataset.pyc in __getitem__(self, args)
480 mspace = h5s.create_simple(mshape)
--> 482 self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
483
484 # Patch up the output for NumPy
h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2687)()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_objects.c:2645)()
h5py/h5d.pyx in h5py.h5d.DatasetID.read (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/h5d.c:3231)()
h5py/_proxy.pyx in h5py._proxy.dset_rw (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_proxy.c:1860)()
h5py/_proxy.pyx in h5py._proxy.H5PY_H5Dread (/Users/travis/build/MacPython/h5py-wheels/h5py/h5py/_proxy.c:1508)()
IOError: Can't read data (Can't open directory