load_phf
load_phf(filename, only_explicit=True, set_config=True)Load the contents of a phf file.
Args
- filename (str): File path to load.
- only_explicit (bool): If set, only explicitly-saved objects are returned (excludes automatically included dependencies).
- set_config (bool): If
True, setconfig.gridandconfig.tolerancewith values loaded from the file.
Returns
dict[Literal[“components”, “technologies”], list[Component] | list[Technology]]:
Dictionary with keys "components" and "technologies", each
holding a list of loaded objects.
See Also