gdsfactory.read.import_gds

Contents

gdsfactory.read.import_gds#

gdsfactory.read.import_gds(gdspath, cellname=None, post_process=None, rename_duplicated_cells=False)[source]#

Reads a GDS file and returns a Component.

Parameters:
  • gdspath (str | Path) – path to GDS file.

  • cellname (str | None) – name of the cell to return. Defaults to top cell.

  • post_process (Sequence[_PostProcess | Callable[[Component], None] | partial[Component]] | None) – function to run after reading the GDS file.

  • rename_duplicated_cells (bool) – if True, rename duplicated cells.

Return type:

Component