gdsfactory.read.import_gds

Contents

gdsfactory.read.import_gds#

gdsfactory.read.import_gds(gdspath, cellname=None, post_process=None, rename_duplicated_cells=False, skip_new_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. By default appends $n to the cell name.

  • skip_new_cells (bool) – if True, skip new cells that conflict with existing ones.

Return type:

Component