Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Converting a HDFDataset to numpy array

hf = h5py.File('/path/to/file', 'r')
data = hf.get('dataset_name').value # `data` is now an ndarray.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Converting #HDFDataset #numpy #array
ADD COMMENT
Topic
Name
6+1 =