Home Forums Nazca Exclude Layers from Export_GDS

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5646
    Daneel
    Member

    Hello,

    the software of our EBL System shows errors with the PIN and PIN description layers (layers 1001 and 1002).

    Is it possible to use nd.export_gds and exclude some specific layers (in my case layers 1001 and 1002) to not show up in the final GDS file?

    Thank you for your help.

    #5648
    Ronald
    Keymaster

    Dear Daneel,

    You can apply a layermap dictionary upon export, like {old_layer: new_layer}:

    import nazca as nd
    
    points = [(0, 0), (5, 0), (0, 5)]
    nd.Polygon(points, layer=1).put(0)
    nd.Polygon(points, layer=2).put(5)
    
    nd.export_gds(layermap={1:5}, layermapmode='none')
    #nd.export_gds(layermap={1:5, 2:None}) # layermapmode default = 'all'

    The layermapmode keyword sets if you start the mapping with all layers removed (‘none’) or all layers still in (‘all’). In the commented out export_gds line I noticed that layer 2 exports to Nazca’s “dump-layer” 1111/0 (Nazca-0.5.3). It is better to have None-mappings removed completely though and I will adapt that.

    Ronald

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.