Loader¶
Load technology parameters and performance specs from YAML config files.
- circuitgenome.sizer.shared.loader.load_spec(path)[source]¶
Load a
SizingSpecfrom a YAML file.Keys that are not
SizingSpecfields are ignored, so a spec file may carry extra annotations (comments, provenance) without breaking loading.- Parameters:
- Return type:
- circuitgenome.sizer.shared.loader.load_tech(path=None)[source]¶
Load
TechParamsfrom a YAML file.- Parameters:
path (Path | str | None) – Path to the technology YAML file, or the short name of a built-in config (e.g.
"ptm45","generic", resolving to the bundledtech_<name>.yaml). Defaults to the built-intech_generic.yamlwhenNone.- Returns:
Parsed
TechParams.- Raises:
FileNotFoundError – If the given path does not exist and is not a built-in config name.
KeyError – If a required field is missing from the YAML.
- Return type: