gdsfactory.cell

Contents

gdsfactory.cell#

gdsfactory.cell(_func: ComponentFunc[ComponentParams], /) ComponentFunc[ComponentParams][source]#
gdsfactory.cell(*, set_settings: bool = True, set_name: bool = True, check_ports: bool = True, check_instances: CheckInstances | None = None, snap_ports: bool = True, add_port_layers: bool = True, cache: Cache[int, Any] | dict[int, Any] | None = None, basename: str | None = None, drop_params: list[str] | None = None, register_factory: bool = True, overwrite_existing: bool | None = None, layout_cache: bool | None = None, info: dict[str, int | float | bool | str | Box | DBox | Edge | DEdge | EdgePair | DEdgePair | EdgePairs | Edges | LayerProperties | Matrix2d | Matrix3d | Path | DPath | Point | DPoint | Polygon | DPolygon | SimplePolygon | DSimplePolygon | Region | Text | DText | Texts | Trans | DTrans | CplxTrans | ICplxTrans | DCplxTrans | VCplxTrans | Vector | DVector | LayerInfo | list[int | float | bool | str | Box | DBox | Edge | DEdge | EdgePair | DEdgePair | EdgePairs | Edges | LayerProperties | Matrix2d | Matrix3d | Path | DPath | Point | DPoint | Polygon | DPolygon | SimplePolygon | DSimplePolygon | Region | Text | DText | Texts | Trans | DTrans | CplxTrans | ICplxTrans | DCplxTrans | VCplxTrans | Vector | DVector | LayerInfo | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData] | None] | tuple[int | float | bool | str | Box | DBox | Edge | DEdge | EdgePair | DEdgePair | EdgePairs | Edges | LayerProperties | Matrix2d | Matrix3d | Path | DPath | Point | DPoint | Polygon | DPolygon | SimplePolygon | DSimplePolygon | Region | Text | DText | Texts | Trans | DTrans | CplxTrans | ICplxTrans | DCplxTrans | VCplxTrans | Vector | DVector | LayerInfo | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData] | None, ...] | dict[str, int | float | bool | str | Box | DBox | Edge | DEdge | EdgePair | DEdgePair | EdgePairs | Edges | LayerProperties | Matrix2d | Matrix3d | Path | DPath | Point | DPoint | Polygon | DPolygon | SimplePolygon | DSimplePolygon | Region | Text | DText | Texts | Trans | DTrans | CplxTrans | ICplxTrans | DCplxTrans | VCplxTrans | Vector | DVector | LayerInfo | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData] | None] | None] | None = None, post_process: Iterable[Callable[[Component], None]] | None = None, debug_names: bool | None = None, tags: list[str] | None = None) Callable[[ComponentFunc[ComponentParams]], ComponentFunc[ComponentParams]]

Decorator to convert a function into a Component.