Skip to content

Commit

Permalink
Update convert_lydb_to_gds.py
Browse files Browse the repository at this point in the history
Signed-off-by: Amro Tork <74936860+atorkmabrains@users.noreply.github.com>
  • Loading branch information
atorkmabrains authored Jan 25, 2023
1 parent 86045eb commit 2f6d540
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rules/klayout/drc/testing/convert_lydb_to_gds.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def darw_polygons(polygon_data, cell, lay_num, dt, path_width):
points = [(float(p.split(",")[0]), float(p.split(",")[1])) for p in poly.split(";")]
print(" All points : " , points)
cell.add(gdstk.FlexPath(points, path_width, layer=lay_num, datatype=dt))

elif tag == "edge":
for poly in polygons:
points = [(float(p.split(",")[0]), float(p.split(",")[1])) for p in poly.split(";")]
print(" All points : " , points)
cell.add(gdstk.FlexPath(points, path_width, layer=lay_num, datatype=dt))
else:
print(f"## Error unknown type: {tag} ignored")

Expand Down

0 comments on commit 2f6d540

Please sign in to comment.