Comments (4)
@okianus Indeed this behavior is correct: only explicitly given cells are written (see the notes in http://gdspy.readthedocs.io/en/latest/library.html#gdspy.GdsLibrary.write_gds).
This adds flexibility for when the library must be split in several files (to be honest I've never used this GDSII feature myself, but it is sometimes needed and defined in the format specs).
from gdspy.
@heitzmann Thanks for the quick reply!
I can overcome this behavior by explicitly getting all the referenced cells using get_dependencies()
and thus achieve the needed behaviour. But out of curiosity – in what cases one would NOT want the dependencies to be outputted to the GDSII file? If I have a top_cell
that references a few subcells, write_gds(outfile, [top_cell])
would produce an incomplete structure. If the library is split into several files, can dependencies exist across more than one file? If that's the case, I'd appreciate a link to the specs. If not, then it appears like there is no reason for the dependencies to be excluded.
from gdspy.
Because GDSII is used in some very old equipment, file sizes sometimes matter. In order to keep sizes constrained it is possible to reference other GDSII files (similar to cell referencing).
In that case I could place my main cell in file 1 and referenced cells in files 2, 3... etc., so that they have smaller sizes. As I said, I have never used this feature myself, although I have faced the file size issue before when using an old laser writer.
The exact spec can be found here: http://boolean.klaasholwerda.nl/interface/bnf/gdsformat.html#rec_reflibs
from gdspy.
@heitzmann Thank you for the clarification and the link to the specs.
from gdspy.
Related Issues (20)
- stuck in hierarchically with CellReferences HOT 3
- RobustPath : Unsupported types for -: 'tuple' and 'tuple' HOT 1
- Use scaling to reduce file size HOT 1
- the direction of polygon in the cellreference is wrong HOT 3
- may be it is a bug for GdsLibrary.new_cell() HOT 6
- 'Cell' object has no attribute 'elements' HOT 1
- gdspy installation in python 3.10. HOT 1
- How can I get the information of the instance?
- Use gdspy in Klayout Macro developement (reopened) HOT 1
- How to read a gds file data and export it as PNG? HOT 1
- gdspy.inside only checks for inside the bbox HOT 1
- GdsLibrary object has no attribute 'cells' HOT 2
- Multiple cells with name: FGCCTE in GDSII file HOT 2
- result of get_bounding_box() for a polygon is wrong HOT 2
- conda install gdspy
- overwrite_duplicate not working with (use_current_library = True) HOT 1
- After gdspy boolean OR operation, help HOT 1
- [0.9.46] Python extension build fails when the PYPI tarball is used HOT 1
- Python tests fail HOT 1
- Merging polygons with gdspy boolean vs Klayout merge produces different results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdspy.