Giter VIP home page Giter VIP logo

Comments (3)

muab avatar muab commented on August 19, 2024

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.

muab avatar muab commented on August 19, 2024

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.

muab avatar muab commented on August 19, 2024

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)

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.