legume.gds.generate_gds

legume.gds.generate_gds(phc, filename, unit=1e-06, tolerance=0.01)

Export a GDS file for all layers of a photonic crystal

Note

The gdspy package is required for exporting GDS files.

Parameters:
  • phc (PhotCryst) –
  • filename (str) –
  • unit (float, optional) – The GDS spatial units. Default is 1e-6, or 1 um.
  • tolerance (float , optional) – The GDS tolerance parameter. Default is 0.01.