I\'m a bit confused here:
As far as I have understood, h5py\'s .value method reads an entire dataset and dumps it into an array, which is slow and disco
Based on the title of your post, the 'correct' way to slice array datasets is to use the builtin slice notation
All of your answers would be equivalent to file["test"][:]
[:] selects all elements in the array
More information about slicing notation can be found here, http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
I use hdf5 + python often, I've never had to use the .value methods. When you access a dataset in an array like such as myarr = file["test"]
python copies the dataset in the hdf5 into an array for you already.