Home Forums Nazca Questions and Answers Sub-1-nm geometry Reply To: Sub-1-nm geometry

#6037
garbagebag
Member

I was able to find the problem with my code. The “nd.gds_base.gds_db_user” variable also needs to be reduced by the same amount as “nd.gds_base.gds_db_unit”, then the GDS shapes scale properly without using the “scale” keyword argument when putting the cell and sub-1-nm geometry is drawn correctly.

So the following code has the expected behavior:

import nazca as nd
unit=1e-5
nd.gds_base.gds_db_unit = unit*1e-6
nd.gds_base.gds_db_user = unit

nd.clear_layers()
nd.add_layer(name='one',layer=1,accuracy=1e-5)
nd.add_layer(name='two',layer=2,accuracy=1e-5)

nd.strt(length=1.15e-3,width=1e-3,layer='one').put()

with nd.Cell() as x:  
    nd.strt(length=1.15e-3,width=1e-3,layer='two').put()
    
x.put(0,0)
nd.export_gds(filename='tinyguy.gds')