You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.5KB

  1. import pya
  2. import os
  3. base_dir = os.path.dirname(os.path.abspath(__file__))
  4. layout = pya.Layout()
  5. layout.read(os.path.join(base_dir, "..", "gds", "image_with_alignment_marks_overlapped.gds"))
  6. layout.delete_layer(1)
  7. layout.top_cell().shapes(0).insert(pya.Box(-9000000, 6850000 - 1850000 + 30000, 9000000, 6850000 - 1850000 + 30000 + 5000))
  8. #layout.transform(pya.Trans(2, False, 0, 0))
  9. layout.write(os.path.join(base_dir, "..", "gds", "wafer_1.gds"))
  10. layout = pya.Layout()
  11. layout.read(os.path.join(base_dir, "..", "gds", "image_with_alignment_marks_overlapped.gds"))
  12. layout.delete_layer(0)
  13. #layout.transform(pya.Trans(2, True, 0, 0))
  14. layout.transform(pya.Trans(0, True, 0, 0))
  15. layout.top_cell().shapes(1).insert(pya.Box(-9000000, 6850000 - 1850000 + 30000, 9000000, 6850000 - 1850000 + 30000 + 5000))
  16. layout.write(os.path.join(base_dir, "..", "gds", "wafer_2.gds"))
  17. layout = pya.Layout()
  18. layout.read(os.path.join(base_dir, "..", "gds", "inverted_tonality", "image_with_alignment_marks_overlapped_inverse.gds"))
  19. layout.delete_layer(1)
  20. #layout.transform(pya.Trans(2, False, 0, 0))
  21. layout.write(os.path.join(base_dir, "..", "gds", "inverted_tonality", "wafer_1_inverse.gds"))
  22. layout = pya.Layout()
  23. layout.read(os.path.join(base_dir, "..", "gds", "inverted_tonality", "image_with_alignment_marks_overlapped_inverse.gds"))
  24. layout.delete_layer(0)
  25. #layout.transform(pya.Trans(2, True, 0, 0))
  26. layout.transform(pya.Trans(0, True, 0, 0))
  27. layout.write(os.path.join(base_dir, "..", "gds", "inverted_tonality", "wafer_2_inverse.gds"))