Hi, recently I am thinking how to export the layer under certain situations, the codes below can show all the layer from this gds file
* import pya
*
* layout = pya.Layout()
* layout.read('BDE.gds.gz')
*
*
* for ly_id in layout.layer_indices():
* ly_info = layout.get_info(ly_id)
* print(ly_info.to_s())
However, if my gds file has two hierarchies and the second hierarchy has a cell name "abc"
if I do not want the the layer information of abc shows in my code, how can I do it? I guess
hide "abc", but how to do it in python code?
Best wishes
Muheng
Hi,Matthias,
thanks for that. BTW, I attached a image, assume my gds file is ABC, I have 3 cells under my ABC, which are
qqq
www
eee
if I want to have a look qqq has layer No.1 or not, I guess I can type
"cell.shapes(layer_1).empty?" to…
Hi, Ejprinz,
I am using PyCharm to program python now in windows, one thing I am not familiar is the Klayout pya module.
Usually on the top of the python code, we can type the database which u want to import, for example
import xlwt
or
import p…
Hi, Dion,
Thanks a lot, I am using windows PC, not Linux.
import pya
layout = pya.Layout()
layout.read('c:\Training\123.gds.gz')
for ly_id in layout.layer_indices():
ly_info = layout.get_info(ly_id)
print(ly_info.to_s())
When I use ur code, it…