It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
It's a little bit strange that there comes out an error after I run the same python code on a new laptop.
The code is as below. It runs pretty well on my old laptop while it doesn't work on my new laptop.
idt = input(1,0)
space_spec = 0.35.micron
width_spec = 0.35.micron
idt.space(space_spec).output(100,0)
idt.width(width_spec).output(200,0)
space_result = input(100,0)
width_result = input(200,0)
space_result.sized(20.um, acute_limit).output(100,0)
width_result.sized(20.um, acute_limit).output(200,0)
The error message is:
C:/Users/my-windows-name/KLayout/pymacros/new_python_file.py:18: invalid syntax
Am I missing any setting on my new laptop?
Thank you!
Comments
This is not Python. This is a DRC script. So I assume the script should go into the DRC section, not into "Python scripts".
That is not related to your new hardware.
Matthias
Thank you very much, Matthias! I must be too stupid to messed up