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

Method test_6

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

Source from the content-addressed store, hash-verified

525
526
527 def test_6(self):
528
529 # instantiate and register the library
530 tl = PCellTestLib()
531
532 lib = pya.Library.library_by_name("PCellTestLib")
533
534 param = { "w": 3.0, "h": 8.0, "l": pya.LayerInfo(3, 0) }
535 pcell_var = lib.layout().create_cell("Box", param)
536
537 self.assertEqual(lib.layout().begin_shapes(pcell_var.cell_index(), lib.layout().layer(3, 0)).shape().__str__(), "box (-1500,-4000;1500,4000)")
538
539
540 def test_7(self):

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected