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