gdsfactory.ComponentAllAngle#
- class gdsfactory.ComponentAllAngle(*, base: TVCell)[source]#
- class gdsfactory.ComponentAllAngle(*, name: str | None = None, kcl: KCLayout | None = None, info: dict[str, Any] | None = None, settings: dict[str, Any] | None = None)
- Parameters:
base (TVCell | None)
name (str | None)
kcl (KCLayout | None)
info (dict[str, Any] | None)
settings (dict[str, Any] | None)
- __init__(*, base=None, name=None, kcl=None, info=None, settings=None)#
- Parameters:
base (TVCell | None)
name (str | None)
kcl (KCLayout | None)
info (dict[str, Any] | None)
settings (dict[str, Any] | None)
- Return type:
None
Methods
__init__(*[, base, name, kcl, info, settings])add_label([text, position, layer])Adds Label to the Component.
add_polygon(points, layer)Adds a Polygon to the Component and returns a klayout Shape.
add_port([name, port, center, width, ...])Adds a Port to the Component.
add_ports(ports[, prefix, suffix, keep_mirror])Add a sequence of ports to the cell.
add_ref_off_grid(component)Adds a component instance reference to a Component without snapping to grid.
add_route_info(cross_section, length[, ...])Adds route information to a component.
auto_rename_ports([rename_func])Rename the ports with the schema angle -> "NSWE" and sort by x and y.
bbox([layer])bbox_np()Returns the bounding box of the Component as a numpy array.
connectivity_check([port_types, layers, db, ...])copy()Copy the full cell.
copy_child_info(component)Copy and settings info from child component into parent.
create_inst(cell[, trans])create_port(*[, name, width, layer, ...])Create a port.
create_vinst(cell, *[, a, b, na, nb])Insert the KCell as a VInstance into a VKCell or KCell.
dbbox([layer])dmirror([p1, p2])Mirror self at a line.
dmirror_x([x])Mirror self at an y-axis at position x.
dmirror_y([y])Mirror self at an x-axis at position y.
dmove(origin[, destination])Move self in um.
dmovex(origin[, destination])Move self in x-direction in um.
dmovey(origin[, destination])Move self in y-direction in um.
draw_ports()Draw all the ports on their respective layer.
drotate(angle[, center])Rotate self by a given angle in degrees.
dup([new_name])Copy the full cell.
flatten()get_netlist([recursive])Returns a place-aware netlist for circuit simulation.
get_polygons(layer)Returns a list of polygons from the Component.
get_ports_list(**kwargs)Returns list of ports.
has_factory_name()ibbox([layer])imirror([p1, p2])Mirror self at a line.
imirror_x([x])Mirror self at an y-axis at position x.
imirror_y([y])Mirror self at an x-axis at position y.
imove(origin[, destination])Move self in dbu.
imovex(origin[, destination])Move self in x-direction in dbu.
imovey(origin[, destination])Move self in y-direction in dbu.
irotate(angle[, center])Rotate self in increments of 90°.
l2n([port_types])Generate a LayoutToNetlist object from the port types.
layer(*args, **kwargs)Get the layer info, convenience for klayout.db.Layout.layer.
lock()mirror([p1, p2])Mirror self at a line.
mirror_x([x])Mirror self at an y-axis at position x.
mirror_y([y])Mirror self at an x-axis at position y.
move(origin[, destination])Move self in dbu.
movex(origin[, destination])Move self in x-direction in dbu.
movey(origin[, destination])Move self in y-direction in dbu.
plot(**kwargs)Plots the Component using klayout.
pprint_ports(**kwargs)Pretty prints ports.
rotate(angle[, center])Rotate self.
shapes([layer])show([lyrdb, l2n, keep_position, ...])Stream the gds to klive.
to_dict([with_ports])Returns a dictionary representation of the Component.
transform(trans, /)write(filename[, save_options, ...])Write a KCell to a GDS.
write_gds([gdspath, gdsdir, save_options, ...])Write component to GDS and returns gdspath.
write_netlist(netlist[, filepath])Returns netlist as YAML string.
Attributes
basebasenamecenterReturns the coordinate center of the bounding box.
dcenterCoordinate of the center of the bounding box in um.
dsize_infodxX coordinate of the center of the bounding box in um.
dxmaxReturns the x-coordinate of the right edge of the bounding box.
dxminReturns the x-coordinate of the left edge of the bounding box.
dxsizeReturns the width of the bounding box.
dyY coordinate of the center of the bounding box in um.
dymaxReturns the y-coordinate of the top edge of the bounding box.
dyminReturns the y-coordinate of the bottom edge of the bounding box.
dysizeReturns the height of the bounding box.
factory_nameReturn the name under which the factory was registered.
function_nameicenterReturns the coordinate center of the bounding box.
infoinstsisize_infoixReturns the x-coordinate of the center of the bounding box.
ixmaxReturns the x-coordinate of the right edge of the bounding box.
ixminReturns the x-coordinate of the left edge of the bounding box.
ixsizeReturns the width of the bounding box.
iyReturns the y-coordinate of the center of the bounding box.
iymaxReturns the y-coordinate of the top edge of the bounding box.
iyminReturns the y-coordinate of the bottom edge of the bounding box.
iysizeReturns the height of the bounding box.
kcllayerslockednamepinsPorts associated with the cell.
portsPorts associated with the cell.
settingsSettings dictionary set by the kfactory.layout.KCLayout.vcell decorator.
settings_unitsDictionary containing the units of the settings.
size_infovinstsxReturns the x-coordinate of the center of the bounding box.
xmaxReturns the x-coordinate of the right edge of the bounding box.
xminReturns the x-coordinate of the left edge of the bounding box.
xsizeReturns the width of the bounding box.
yReturns the y-coordinate of the center of the bounding box.
ymaxReturns the y-coordinate of the top edge of the bounding box.
yminReturns the y-coordinate of the bottom edge of the bounding box.
ysizeReturns the height of the bounding box.