captest.load_config
- captest.load_config(path, key='captest')
Load and lightly validate the captest sub-mapping from a yaml file.
- Parameters:
path (str or Path) – Path to the yaml file. Relative paths in
meas_path/sim_pathare resolved by callers usingPath(path).parentas the base.key (str, default 'captest') – Top-level key whose value is the CapTest configuration sub-mapping.
- Returns:
The sub-mapping at
keywith string shorthands resolved. Does NOT validate againstCapTestparam types;CapTest.from_yamldoes that.- Return type:
dict
- Raises:
KeyError – If
keyis not present at the top level of the yaml file.