gdsfactory / kfactory

gdsfactory with a klayout backend
https://gdsfactory.github.io/kfactory/
MIT License
28 stars 10 forks source link

return uminstance with moving references #287

Closed joamatab closed 3 months ago

joamatab commented 3 months ago

allows to do

c = gf.Component()
ref = c << gf.c.straight()
ref.d.movex(10).d.rotate(90)
sebastian-goeldi commented 3 months ago

What's the reason not to return the UMInstance?

Wouldn't that make more sense because you can do:

inst.d.rotate(90).movex(15.5)

And so on