Home Forums Nazca Hashme with multiple cells Reply To: Hashme with multiple cells

#5995
Xaveer
Moderator

Dear ale35,

Because your cell does not seem to take any parameters, the hashme (and even the function definition) are not needed. Just define the cell (in a with statement) and use it:

import nazca as nd

with nd.Cell("MMI_1x2") as mmi1x2:
    nd.strt(length=10, width=5).put()

for i in range(100):
    mmi1x2.put(i * 10, i * 10)

nd.export_gds()

Xaveer