Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Multiple cells with name: FGCCTE in GDSII file #230

@dany197

Description

@dany197

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 !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions