SiEPIC / SiEPIC-Tools

Package for KLayout to add integrated optics / silicon photonics functionality (waveguides, netlist extraction, circuit simulations, etc)
Other
182 stars 90 forks source link

Error "Layout object has no attribute technology" when using "Path to Waveguide" function #162

Closed cheng1214 closed 2 years ago

cheng1214 commented 2 years ago

Hi All,

After I updated the SiEPIC packages, now everytime I use "path to waeguide", it threw an error "Layout object has no attribute technology",

Details is as below:

'Layout' object has no attribute 'technology' C:\Users\Rui Cheng\KLayout\salt\siepic_tools\python\SiEPIC\extend.py:688 C:\Users\Rui Cheng\KLayout\salt\siepic_tools\python\SiEPIC\scripts.py:515 C:/Users/Rui Cheng/KLayout/salt/siepic_tools/pymacros/Keybindings/Waveguides/Path to Waveguide - Hotkey.lym:5

Could anyone help me fix this? Thanking you! Rui

lukasc-ubc commented 2 years ago

You closed the issue. Is it still a problem? thank you

On Dec 5, 2021, at 5:56 AM, cheng1214 @.***> wrote:

Closed #162 https://github.com/SiEPIC/SiEPIC-Tools/issues/162.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SiEPIC/SiEPIC-Tools/issues/162#event-5716804921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADY37ABGCQ3SNSDGQFWOQRTUPNVRRANCNFSM5JMUVPYA.

cheng1214 commented 2 years ago

Hi Lukas,

Although not confirmed yet, I think the issue is because I was using KLayout 0.26.8, while "Technology" method is not available untill Klayout 0.27

According to Description of "Technology" method in Class Layout on (https://www.klayout.de/doc/code/class_Layout.html#method127)

"This method has been introduced in version 0.27. Before that, the technology has been kept in the 'technology' meta data element."