-
Notifications
You must be signed in to change notification settings - Fork 6
How to install
As the script is written in python it's platform independent, you just need to install python for your platform (http://www.python.org).
The easiest way is to copy gds.py where ever you want. You shouldn't change this file except if you know what you are doing (like add feature/fix bug/etc.). If you do some improvement to the script you are very welcom to share and update it to the github repo. Now in order to create a new gds file you should create a new python script in the same directory as gds.py and import the library like in the following exemple:
#!/usr/bin/python
import gds
``
g=gds.GDSII('gdsdata.gds')
`g.newLib("test")`
`g.newStr("MyFirstStructure-1rect")`
`g.addRect((0,0,1000,1000),dose=1,layer=0)`
`g.endStr()`
`g.endLib()`
`g.close()`