invalid syntax on new laptop

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.

input layer

idt = input(1,0)

Define width/space spec

space_spec = 0.35.micron
width_spec = 0.35.micron

min width/space checks

idt.space(space_spec).output(100,0)
idt.width(width_spec).output(200,0)

Draw

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 ;)

Sign In or Register to comment.