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