Comments (3)
after a successful import, the saving doesn't work without making any changes to the gds.
a hierarchical gds will fail in line 1857, while a flat one will fail in 736.
import correctly
Writing the following cells
IGA_AI_124_A_PR_childs: Cell ("IGA_AI_124_A_PR_childs", 0 elements, 3 references)
WIRE_CELL: Cell ("WIRE_CELL", 31302 elements, 0 references)
inter_otft_AI_v_w65_l6_nf5: Cell ("inter_otft_AI_v_w65_l6_nf5", 602 elements, 0 references)
pad_iga_matrix: Cell ("pad_iga_matrix", 87264 elements, 42 references)
IGA_SAMPLE: Cell ("IGA_SAMPLE", 8 elements, 100 references)
PAD_IGA: Cell ("PAD_IGA", 404 elements, 0 references)
SQ_OTFT_AI_124_A: Cell ("SQ_OTFT_AI_124_A", 0 elements, 126 references)
inter_otft_AI_v_w40_l6_nf4: Cell ("inter_otft_AI_v_w40_l6_nf4", 1075 elements, 0 references)
VERTICAL: Cell ("VERTICAL", 4071 elements, 0 references)
IGA_PAS1: Cell ("IGA_PAS1", 504 elements, 0 references)
inter_otft_AI_v_w80_l6_nf8: Cell ("inter_otft_AI_v_w80_l6_nf8", 1388 elements, 0 references)
Traceback (most recent call last):
File "gdsCAD_tests.py", line 31, in
prt = core.Layout.save(importedgds, 'gdsCAD_outfile.gds')
File "C:\Python27\lib\site-packages\gdscad-0.5.0-py2.7.egg\gdsCAD\core.py", line 1325, in save
outfile.write(cell.to_gds(self.unit / self.precision, duplicates))
File "C:\Python27\lib\site-packages\gdscad-0.5.0-py2.7.egg\gdsCAD\core.py", line 1489, in to_gds
data += element.to_gds(multiplier, duplicates)
File "C:\Python27\lib\site-packages\gdscad-0.5.0-py2.7.egg\gdsCAD\core.py", line 1857, in to_gds
return data + struct.pack('>2h2l2h', 12, 0x1003, int(round(self.origin[0] * multiplier)), int(round(self.origin[1] * multiplier)), 4, 0x1100)
struct.error: integer out of range for 'l' format code
from gdscad.
also a different error is that if the gds has no text layout objects at all, core.Layout.save(layout,outfile) will fail in line 723 (core.py), since len(text) won't work when text is trying to be substituted by object 'NoneType'.
from gdscad.
The last commented error was due to a gds layout that had undesired empty text elements inserted by the layout tool. Once eliminated the errors in the gds then core.Layout.save(layout,outfile) worked fine.
The other error was also related to the exporting of the gds by the layout tool. This was saving the date data incorrectly (out of range). I used another tool for exporting the gds and again it worked fine.
from gdscad.
Related Issues (20)
- shapes.Box lower left corner not rectangular HOT 1
- Python v3.x support HOT 4
- DXF Import HOT 1
- layout.show() error HOT 1
- Unique name in def HOT 1
- ../.. HOT 1
- typeerror: ufunc 'add' did not contain a loop with signature matching types dtype#'S32'# dtype#'S32'# dtype#'S32'# HOT 2
- Some issue with color mapping is preventing show from working correctly HOT 1
- How to set colors for layers independently from script
- Question: circle with voids HOT 1
- example error 'TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32')' HOT 3
- TypeError: 'numpy.ndarray' object is not callable HOT 1
- Example hyperlinks not working in docs HOT 1
- Trouble Installing
- Changing Resolution of Layout
- GDS Cad integration error HOT 1
- ValueError: LineStrings must have at least 2 coordinate tuples
- Installation with Python 3.8.3. Error with get_version() HOT 1
- Performance issue with Python 3.8
- Installtion problem in py38 enviroment with git: get_version() HOT 2
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 gdscad.