gdspy
gdspy copied to clipboard
Multiple cells with name: FGCCTE in GDSII file
Hi, I have been using gdspy since 2019. This is very useful and thanks for your effort.
I recently got a problem when switch the same code from old (win 10) to new computer (win 11). In this new computer, I have python(3.10.9), gdspy (1.6.13). The problem comes out when I combine multiple gds files to one big gds file. The code I use is attached below.
##################### lib = gdspy.GdsLibrary() main = lib.new_cell('main') ref = []
dev1 = lib.read_gds(infile ='dev1.gds').cells['dev1_main'] dev2 = lib.read_gds(infile ='dev2.gds').cells['dev2_main']
ref.append(gdspy.CellReference(dev1, (0, 0), magnification=1, rotation=0)) ref.append(gdspy.CellReference(dev2, (0, 0), magnification=1, rotation=0))
main.add(ref) lib.write_gds('main.gds')
##################### This code works fine on my old computer. But raise ValueError("ValueError: [GDSPY] Multiple cells with name: FGCCTE in GDSII file") on my new computer. FGCTE is a basic subcell which is reused in both dev1 and dev2. Could you help have a look and any suggestions will be appreciated!! Thanks a lot !!!