captest.CapTest.from_yaml
- classmethod CapTest.from_yaml(path, key='captest', meas_loader=None, sim_loader=None)
Construct a CapTest from a yaml config file.
Reads the sub-mapping at the given top-level
keyof the yaml file and delegates tofrom_mapping()withbase_dir=path.parentso relativemeas_path/sim_pathvalues resolve against the yaml’s directory.- Parameters:
path (str or Path) – Path to a yaml file.
key (str, default 'captest') – Top-level key whose value is the CapTest sub-mapping.
meas_loader (callable or None, optional) – Programmatic-only loader callables that override the default resolution (
captest.io.load_data/captest.io.load_pvsyst). Supplied here because loader callables cannot be represented in yaml. Useful for downstream wrappers that drive yaml-based construction but need a custom measured-data loader. WhenNonethe default resolution applies.sim_loader (callable or None, optional) – Programmatic-only loader callables that override the default resolution (
captest.io.load_data/captest.io.load_pvsyst). Supplied here because loader callables cannot be represented in yaml. Useful for downstream wrappers that drive yaml-based construction but need a custom measured-data loader. WhenNonethe default resolution applies.
- Return type: