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: CHECK_INSTANCES | None = None, snap_ports: bool = True, basename: str | None = None, drop_params: tuple[str, ...] = ('self', 'cls'), 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 | None | 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 | None | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData]] | 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 | None | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData], ...] | 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 | None | list[MetaData] | tuple[MetaData, ...] | dict[str, MetaData]]] | None = None, post_process: Iterable[Callable[[KCell], None]] | None = None) Callable[[ComponentFunc[ComponentParams]], ComponentFunc[ComponentParams]]
Decorator to convert a function into a Component.