extract list of layers

How can I print list of layers used in gds/oasis file?


  • edited October 2018

    E.g. like this (using the klayout module from PyPI.org.
    To install it into your Python: Python bin directory/pip3 install klayout

    import os
    import sys
    import klayout.db as kl
    lay = kl.Layout()
    layer_map = lay.read(sys.argv[1])
Sign In or Register to comment.