It looks like you're new here. If you want to get involved, click one of these buttons!
I found size() for shapes return wrong value.
See below code, shapes.size() return 1.
However, it could find 7 if loopped with shapes.each().
nly = pya.Layout(False) nly.read('t1.oas') top_cell = nly.cell(0) ss = top_cell.shapes(0) print(top_cell.basic_name(), ss.size()) slist = [x for x in ss.each()] print(top_cell.basic_name(), len(slist))
top 1 top 7
Is it a bug?