gdsfactory / kfactory

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

Add port access for instance arrays and pretty print for ports #252

Closed sebastian-goeldi closed 7 months ago

sebastian-goeldi commented 7 months ago

Fixes #203

Usage:

inst = c.creat_inst(..., a=kf.kdb.Vector(x1, y1), b=kf.kdb.Vector(x2, y2), na=4, nb=5)
inst[port_name, 3, 5]
sebastian-goeldi commented 7 months ago

@joamatab I added print to ports and port, what do you think? This would replace pprint_ports of gdsfactory