jangada.serialization.Persistable.load#
- classmethod Persistable.load(path: Path | str) Persistable#
Load an object from an HDF5 file.
- Parameters:
- pathPath | str
File path to load from.
- Returns:
- Persistable
Reconstructed object.
- Raises:
- FileNotFoundError
If file does not exist.
See also
saveSave counterpart
Notes
The entire file is loaded into memory. For large files, consider using context manager mode for lazy loading:
with Experiment('large_file.hdf5', mode='r') as exp: # Access data on-demand chunk = exp.data[100:200]
Examples
>>> exp = Experiment.load('experiment.hdf5') >>> print(exp.name) 'Test'