ubcpdk.components.add_fiber_array#
- ubcpdk.components.add_fiber_array(component: str | ~collections.abc.Callable[[...], ~gdsfactory.component.Component] | dict[str, ~typing.Any] | ~kfactory.kcell.KCell = <function straight>, component_name: str | None = None, gc_port_name: str = 'o1', with_loopback: bool = False, fanout_length: float = 0.0, grating_coupler: str | ~collections.abc.Callable[[...], ~gdsfactory.component.Component] | dict[str, ~typing.Any] | ~kfactory.kcell.KCell = <function gc_te1550>, cross_section: ~collections.abc.Callable[[...], ~gdsfactory.cross_section.CrossSection] | ~gdsfactory.cross_section.CrossSection | dict[str, ~typing.Any] | str | ~gdsfactory.cross_section.Transition = 'strip', straight: str | ~collections.abc.Callable[[...], ~gdsfactory.component.Component] | dict[str, ~typing.Any] | ~kfactory.kcell.KCell = 'straight', taper: str | ~collections.abc.Callable[[...], ~gdsfactory.component.Component] | dict[str, ~typing.Any] | ~kfactory.kcell.KCell | None = None, **kwargs) Component [source]#
Returns component with grating couplers and labels on each port.
Routes all component ports south. Can add align_ports loopback reference structure on the edges.
- Parameters:
component – to connect.
component_name – for the label.
gc_port_name – grating coupler input port name ‘o1’.
with_loopback – True, adds loopback structures.
fanout_length – None # if None, automatic calculation of fanout length.
grating_coupler – grating coupler instance, function or list of functions.
cross_section – spec.
straight – straight component.
taper – taper component.
kwargs – cross_section settings.