2.6.1. h5pywrappers.obj.load

load(obj_id, read_only=True)[source]

Load an HDF5 object from an HDF5 file.

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

Parameters:
obj_idh5pywrappers.obj.ID

The parameter set specifying the HDF5 object of interest.

read_onlybool, optional

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

Returns:
objh5py.Group | h5py.Dataset

The HDF5 object of interest.