write_phf¶
- photonforge.write_phf(filename, *args)¶
Save a phf file with components and technologies.
- Parameters:
filename (str) – File path to save.
*args (Component | Technology) – Components and technologies to be stored in the file.
Note
Component dependencies and technologies are automatically included in the file.
Example
>>> technology = basic_technology() >>> component = Component("MAIN", technology=technology) >>> write_phf("main.phf", component) # includes the technology >>> write_phf("tech.phf", technology) # only technology in file
See also