Skip to article frontmatterSkip to article content

gdsfactory.read.import_gds

gdsfactory.read.import_gds(gdspath: str | Path, cellname: str | None = None, post_process: Sequence[_PostProcess | Callable[[Component], None] | partial[Component]] | None = None, rename_duplicated_cells: bool = False)Component

Reads a GDS file and returns a Component.

Parameters
  • gdspathpath to GDS file.

  • cellnamename of the cell to return. Defaults to top cell.

  • post_processfunction to run after reading the GDS file.

  • rename_duplicated_cellsif True, rename duplicated cells.