MCPcopy Create free account
hub / github.com/KLayout/klayout / PCellTestLib

Class PCellTestLib

testdata/python/dbPCells.py:70–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 return [ layout.get_info(layer), shape.box.width() * layout.dbu, shape.box.height() * layout.dbu ]
69
70class PCellTestLib(pya.Library):
71
72 def __init__(self):
73
74 # set the description
75 self.description = "PCell test lib"
76
77 # create the PCell declarations
78 self.layout().register_pcell("Box", BoxPCell())
79
80 sb_index = self.layout().add_cell("StaticBox")
81 l10 = self.layout().insert_layer(pya.LayerInfo(10, 0))
82 sb_cell = self.layout().cell(sb_index)
83 sb_cell.shapes(l10).insert(pya.Box(0, 0, 100, 200))
84
85 # register us with the name "PCellTestLib"
86 self.register("PCellTestLib")
87
88
89if "PCellDeclarationHelper" in pya.__dict__:

Callers 8

test_1Method · 0.70
test_2Method · 0.70
test_3Method · 0.70
test_4Method · 0.70
test_5Method · 0.70
test_6Method · 0.70
test_7Method · 0.70
test_8Method · 0.70

Calls

no outgoing calls

Tested by 8

test_1Method · 0.56
test_2Method · 0.56
test_3Method · 0.56
test_4Method · 0.56
test_5Method · 0.56
test_6Method · 0.56
test_7Method · 0.56
test_8Method · 0.56