How to use the klayout.lay.Annotation function in klayout

To help you get started, we’ve selected a few klayout examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KLayout / klayout / testdata / pymod / import_lay_noqt.py View on Github external
def test_2(self):
    # Some smoke test
    ant = lay.Annotation()
    ant.style = lay.Annotation.StyleRuler
    self.assertEqual(str(ant.style), str(lay.Annotation.StyleRuler))
    ant.fmt_x = "abc"
    self.assertEqual(ant.fmt_x, "abc")