iqm-finland / KQCircuits

KLayout Python library for integrated quantum circuit design.
GNU General Public License v3.0
129 stars 71 forks source link

Type error in Meander object using last release of KLayout in windows #101

Closed jevillegasd closed 1 week ago

jevillegasd commented 2 weeks ago

What happened? What you expected to happen?

Hey! When instantiating a meander PCell, an error 'TypeError: 'DPoint' is not callable is thrown. The error source points to the PCell declaration helper function, so I couldn't trace which line in the meander definition is generating the error. Other PCells don't seem to throw this error. I tried this using main and the latest salt package direc;ty installed from KLayout and I get the same error.

image

Best, Juan

Versions

KQCircuits: 4.8.2 (and main at commit #90c2c70) KLayout: 0.29.6 OS: Windows 11

Issue Severity

Medium: significant difficulty but I can work around it

qpavsmi commented 2 weeks ago

Hi! This is an issue I am working on right this moment. Starting from KLayout 0.29.5 the PCellDeclarationHelper class from which all Element subclasses are derived got a start function introduced. This caused Meander element to fail (maybe others too) because it has a parameter named start, that is currently clashing with KLayout's code. Expect a fix for this early next week or maybe even today.

qpavsmi commented 2 weeks ago

But yes, in the mean time, the workarounds are:

qpavsmi commented 1 week ago

This has now been fixed as of KQCircuits v4.8.4, its compatible with KLayout >= 0.29.5. Closing issue. Feel free to reopen the issue if something is still wrong.