Loader

Load technology parameters and performance specs from YAML config files.

circuitgenome.sizer.shared.loader.load_spec(path)[source]

Load a SizingSpec from a YAML file.

Keys that are not SizingSpec fields are ignored, so a spec file may carry extra annotations (comments, provenance) without breaking loading.

Parameters:

path (Path | str)

Return type:

SizingSpec

circuitgenome.sizer.shared.loader.load_tech(path=None)[source]

Load TechParams from 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 bundled tech_<name>.yaml). Defaults to the built-in tech_generic.yaml when None.

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:

TechParams