quantlab.core.store_folder.load_component#
- quantlab.core.store_folder.load_component(folder)[source]#
Rebuild the component a store folder’s
component.jsonrecords.- Parameters:
- folderstr or pathlib.Path
The store’s folder.
- Returns:
- Component
The dataset, factor or factor risk model, with every nested component.
- Raises:
- FileNotFoundError
If the folder has no
component.json.
Examples
Needs a store folder under the data root, so it is not run here:
risk_model = load_component("/data/quantlab/risk/use4")