Skip to content

write_phf

write_phf(filename, *args)

Save a phf file with photonforge or other objects.

Args

  • filename (str): File path to save.
  • *args (object): All photonforge objects are supported. Serializable Tidy3D objects and many native python and numpy types are also supported.

Note

Component dependencies and technologies are automatically included in the file.

Example

>>> technology = pf.basic_technology()
>>> component = pf.Component("MAIN", technology=technology)
>>> pf.write_phf("main.phf", component) # includes the technology
>>> pf.write_phf("tech.phf", technology) # only technology in file

See Also

Y Splitter