GithubHelp home page GithubHelp logo

Comments (2)

heitzmann avatar heitzmann commented on June 4, 2024

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:

lib1 = gdspy.GdsLibrary(infile ='dev1.gds')
dev1 = lib1.cells['dev1_main']

lib2 = gdspy.GdsLibrary(infile ='dev2.gds')
dev2 = lib2.cells['dev2_main']

lib = gdspy.GdsLibrary()
lib.add(dev1)
lib.add(dev2, overwrite_duplicate=True)

main = lib.new_cell('main')
main.add(gdspy.CellReference(dev1, (0, 0), magnification=1, rotation=0))
main.add(gdspy.CellReference(dev2, (0, 0), magnification=1, rotation=0))

lib.write_gds('main.gds')

from gdspy.

dany197 avatar dany197 commented on June 4, 2024

It works now. Thank you so much, Heitzmann! You are super brilliant!!

from gdspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.