How to use the klayout.tl.Value 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_tl.py View on Github external
def test_2(self):
    # Some smoke test
    v = tl.Value()
    self.assertEqual(v.value, None)
    v = tl.Value(1)
    self.assertEqual(v.value, 1)
    v = tl.Value("abc")
    self.assertEqual(v.value, "abc")
github KLayout / klayout / testdata / pymod / import_tl.py View on Github external
def test_2(self):
    # Some smoke test
    v = tl.Value()
    self.assertEqual(v.value, None)
    v = tl.Value(1)
    self.assertEqual(v.value, 1)
    v = tl.Value("abc")
    self.assertEqual(v.value, "abc")
github KLayout / klayout / testdata / pymod / import_tl.py View on Github external
def test_2(self):
    # Some smoke test
    v = tl.Value()
    self.assertEqual(v.value, None)
    v = tl.Value(1)
    self.assertEqual(v.value, 1)
    v = tl.Value("abc")
    self.assertEqual(v.value, "abc")