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

Method test_8

testdata/python/dbPCells.py:553–568  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

551 self.assertEqual(ly.begin_shapes(cell, ly.layer(4, 0)).shape().__str__(), "box (-200,-400;200,400)")
552
553 def test_8(self):
554
555 # instantiate and register the library
556 tl = PCellTestLib()
557
558 lib = pya.Library.library_by_name("PCellTestLib")
559 ly = pya.Layout(True)
560 ly.dbu = 0.01
561
562 param = { "w": 2.0, "h": 6.0, "l": pya.LayerInfo(5, 0) }
563 pcell_var = lib.layout().create_cell("Box", param)
564 pcell_var.name = "BOXVAR"
565
566 cell = ly.create_cell("BOXVAR", "PCellTestLib")
567
568 self.assertEqual(cell.begin_shapes_rec(ly.layer(5, 0)).shape().__str__(), "box (-100,-300;100,300)")
569
570 def test_9(self):
571

Callers

nothing calls this directly

Calls 7

LayoutMethod · 0.80
__str__Method · 0.80
PCellTestLibClass · 0.70
create_cellMethod · 0.45
layoutMethod · 0.45
shapeMethod · 0.45
layerMethod · 0.45

Tested by

no test coverage detected