- gdsfactory.routing.fanout2x2(component: ComponentSpec = 'straight', port_spacing: float = 20.0, bend_length: float | None = None, npoints: int = 101, select_ports: PortsFactory = functools.partial(<function select_ports>, port_type='optical'), cross_section: CrossSectionSpec = 'strip', **kwargs: Any)Component
Returns component with Sbend fanout routes.
- Parameters
component– to fanout.port_spacing– for the returned component.bend_length– length of the bend (defaults to port_spacing).npoints– for sbend.select_ports– function to select optical_ports ports.cross_section– cross_section spec.kwargs– cross_section settings.
import gdsfactory as gf c = gf.components.nxn(west=2, east=2) cc = gf.routing.fanout2x2(component=c, port_spacing=20) cc.plot()