hdf5_loadhandle

Contents

hdf5_loadhandle#

class hdf5_loadhandle(loadfile)[source]#

Get a handle to an open HDF5 file to read from.

Parameters:
loadfilestr or h5py File/Group handle
  • str : Name of the file to read from.

  • h5py File/Group handle : handle to part of an already open HDF5 file to read data from.

Examples

>>> with hdf5_loadhandle("file_to_read_from.h5") as hf:
...    dataset = hf["dataset_label"][:]
Methods: