Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

extract list of layers

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

Comments

  • 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])
    print(layer_map.to_string())
    
Sign In or Register to comment.