Hi, I’m a new user of Nazca. I get a question about open and modify a gds. I have some ready gds files but they were created by others and there is no pin in the cells. Therefore, I would like to add ‘a0’ ‘b0’ pins in these gds. However, I can only load these gds but I cannot modify them. since the function ‘load_gds’ cannot active the cell. How can I active an existed cell and modify it? Thanks.
This tutorial will be helpful.
Basically, create a new cell, load the gds with load_gds().put() and create and put pins with nd.Pin().put(). You can also flatten the gds in your new cell using instantiate=False:
import nazca as nd
with nd.Cell(name='cellname') as C:
).put(0) # puts (0, 0) in the gds at (0, 0) of cell C.
# Add Pins
nd.Pin('<name>', width=<width>, xs=...).put(<x>, <y>, <angle>)