gdsfactory.routing.add_electrical_pads_top_dc#
- gdsfactory.routing.add_electrical_pads_top_dc(component: ComponentSpec, spacing: tuple[float, float] = (0.0, 100.0), pad_array: ComponentSpec = 'pad_array270', select_ports: ~collections.abc.Callable[[...], ~collections.abc.Sequence[~kfactory.kcell.Port]] = functools.partial(<function select_ports>, port_type='electrical'), port_names: ~collections.abc.Sequence[str] | None = None, cross_section: CrossSectionSpec = 'metal_routing', **kwargs: ~typing.Any) Component [source]#
Returns new component with electrical ports connected to top pad array.
- Parameters:
component – component spec to connect to.
spacing – component to pad spacing.
pad_array – component factor for pad_array. (deprecated)
select_ports – function to select_ports.
route_bundle_function – function to route bundle of ports.
port_names – optional port names. Overrides select_ports.
cross_section – cross_section for the route.
kwargs – route settings.
import gdsfactory as gf c = gf.components.wire_straight(length=200.) c = gf.routing.add_electrical_pads_top_dc(c, width=10) c.plot()