gdshelpers icon indicating copy to clipboard operation
gdshelpers copied to clipboard

GDSIIImport's get_as_shapely does not work properly with cell arrays

Open nicholasnobile opened this issue 2 years ago • 2 comments

If this is run on a cell array, it does not recognize multiple instantiations....only the original copy at the original origin is placed (like just cellarray[0] and not the others....). See the zip.zip file. Use the Top Cell for copy image zip.zip

nicholasnobile avatar Jan 26 '22 21:01 nicholasnobile

Yep. The code in version 53970dd works for doing a good convert to positive resist function image

if positive:
        pcell = Cell("Top")
        pcell.add_to_layer(1, convert_to_positive_resist(parts=cell.get_reduced_layer(1), buffer_radius=2))
        pcell.save(f"{directory}/{filename}_pos", grid_steps_per_micron=10000)

nicholasnobile avatar Jan 27 '22 15:01 nicholasnobile

Actually, This works well for outputting a design that is made currently in program from a cell object made there. Similar changes need to be made to the GDSIIImport class as was done in 53970dd so that already made designs can be properly imported first as the issue seems to occur at import time as well.

nicholasnobile avatar Jan 27 '22 16:01 nicholasnobile