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, wheredatasetis the HDF5 dataset of interest. To close the HDF5 file, users can run the commanddataset.file.close(), however by doing so, any other HDF5 objects belonging to that file will become unusable.- Parameters:
- dataset_id
h5pywrappers.obj.ID The parameter set specifying the HDF5 dataset of interest.
- read_onlybool, optional
If
read_onlyis set toTrue, then the HDF5 dataset of interest cannot be modified after loading it. Otherwise, ifread_onlyis set toFalse, then the HDF5 dataset of interest can be modified after loading it.
- dataset_id
- Returns:
- dataset
h5py.Dataset The HDF5 dataset of interest.
- dataset