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_path are resolved by callers using Path(path).parent as the base.

  • key (str, default 'captest') – Top-level key whose value is the CapTest configuration sub-mapping.

Returns:

The sub-mapping at key with string shorthands resolved. Does NOT validate against CapTest param types; CapTest.from_yaml does that.

Return type:

dict

Raises:

KeyError – If key is not present at the top level of the yaml file.