gdsfactory.ComponentAllAngle

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)
__init__(*, base: TVCell | None = None, name: str | None = None, kcl: KCLayout | None = None, info: dict[str, Any] | None = None, settings: dict[str, Any] | None = None) 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_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)

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

base

basename

center

Returns the coordinate center of the bounding box.

dcenter

Coordinate of the center of the bounding box in um.

dsize_info

dx

X coordinate of the center of the bounding box in um.

dxmax

Returns the x-coordinate of the right edge of the bounding box.

dxmin

Returns the x-coordinate of the left edge of the bounding box.

dxsize

Returns the width of the bounding box.

dy

Y coordinate of the center of the bounding box in um.

dymax

Returns the y-coordinate of the top edge of the bounding box.

dymin

Returns the y-coordinate of the bottom edge of the bounding box.

dysize

Returns the height of the bounding box.

factory_name

Return the name under which the factory was registered.

function_name

icenter

Returns the coordinate center of the bounding box.

info

insts

isize_info

ix

Returns the x-coordinate of the center of the bounding box.

ixmax

Returns the x-coordinate of the right edge of the bounding box.

ixmin

Returns the x-coordinate of the left edge of the bounding box.

ixsize

Returns the width of the bounding box.

iy

Returns the y-coordinate of the center of the bounding box.

iymax

Returns the y-coordinate of the top edge of the bounding box.

iymin

Returns the y-coordinate of the bottom edge of the bounding box.

iysize

Returns the height of the bounding box.

kcl

layers

locked

name

pins

Ports associated with the cell.

ports

Ports associated with the cell.

settings

Settings dictionary set by the [@vcell][kfactory.kcell.vcell] decorator.

settings_units

Dictionary containing the units of the settings.

size_info

vinsts

x

Returns the x-coordinate of the center of the bounding box.

xmax

Returns the x-coordinate of the right edge of the bounding box.

xmin

Returns the x-coordinate of the left edge of the bounding box.

xsize

Returns the width of the bounding box.

y

Returns the y-coordinate of the center of the bounding box.

ymax

Returns the y-coordinate of the top edge of the bounding box.

ymin

Returns the y-coordinate of the bottom edge of the bounding box.

ysize

Returns the height of the bounding box.