You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
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 = []
#####################
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 !!!
The text was updated successfully, but these errors were encountered:
Instead of reading into the same library, you can add individual cells and overwrite any duplicates (assuming cells with the same name in both libraries are identical, there should be no problem), for example:
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 !!!
The text was updated successfully, but these errors were encountered: