2.2.1. h5pywrappers.dataset.load

load(dataset_id, read_only=True)[source]

Load an HDF5 dataset from an HDF5 file.

Note that users can access the HDF5 file object to which the HDF5 dataset of interest belongs via dataset.file, where dataset is the HDF5 dataset of interest. To close the HDF5 file, users can run the command dataset.file.close(), however by doing so, any other HDF5 objects belonging to that file will become unusable.

Parameters:
dataset_idh5pywrappers.obj.ID

The parameter set specifying the HDF5 dataset of interest.

read_onlybool, optional

If read_only is set to True, then the HDF5 dataset of interest cannot be modified after loading it. Otherwise, if read_only is set to False, then the HDF5 dataset of interest can be modified after loading it.

Returns:
dataseth5py.Dataset

The HDF5 dataset of interest.