| 498 | self.assertEqual(ly.begin_shapes(c1.cell_index(), ly.layer(1, 0)).shape().__str__(), "box (-200,-400;200,400)") |
| 499 | |
| 500 | def test_4(self): |
| 501 | |
| 502 | # instantiate and register the library |
| 503 | tl = PCellTestLib() |
| 504 | |
| 505 | lib = pya.Library.library_by_name("PCellTestLib") |
| 506 | pcell_decl_id = lib.layout().pcell_id("Box") |
| 507 | |
| 508 | param = { "w": 4.0, "h": 8.0, "l": pya.LayerInfo(1, 0) } |
| 509 | pcell_var_id = lib.layout().add_pcell_variant(pcell_decl_id, param) |
| 510 | |
| 511 | self.assertEqual(lib.layout().begin_shapes(pcell_var_id, lib.layout().layer(1, 0)).shape().__str__(), "box (-2000,-4000;2000,4000)") |
| 512 | |
| 513 | def test_5(self): |
| 514 | |