Closed caspar-iqm closed 1 year ago
The above example is outdated, now we can use:
from kqcircuits.klayout_view import KLayoutView
from kqcircuits.elements.waveguide_composite import Node
from kqcircuits.elements.waveguide_composite import WaveguideComposite
view = KLayoutView()
view.insert_cell(WaveguideComposite, nodes=[Node((-1600.0, -2400.0)), Node((-900.0, -2400.0), length_increment=500.0, a=30, b=20), Node((100.0, -2400.0))])
view.focus()
But the fastest way to reproduce is to take a WaveguideComposite
in KLayout and change its nodes
parameter to (-1600.0, -2400.0),(-900.0, -2400.0, {'a': 30, 'b': 20, 'length_increment': 500.0}),(100.0, -2400.0)
I'll work on this.
Minimum working example:
Generated layout:
Expected result: the meandering segment should appear with the initial dimensions (a=10 and b=6 in this case). Instead, it uses the a and b value of the node.