gdsfactory / kfactory

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

kf.show() #294

Closed joamatab closed 5 months ago

joamatab commented 5 months ago

how could we show connectivity checks lyrdb in klayout?

    c = mzi_with_bend(radius=50)
    ly = c.connectivity_check()
    ly.save('/home/archie/Downloads/checks.lyrdb')
    # c = gf.routing.add_fiber_single(c)
    kf.show('/home/archie/Downloads/checks.lyrdb')
sebastian-goeldi commented 5 months ago

klive already supports this (and l2n for that matter):

https://github.com/gdsfactory/klive/blob/main/klayout/python/klive_server.py#L126

So, all that's left to do is to make show accept rdb/lyrdb file paths and pass them on to klive as lyrdb/l2n in the data json.

One note though. lyrdb/l2n doesn't make sense without a matching layout file

sebastian-goeldi commented 5 months ago

fixed by https://github.com/gdsfactory/kfactory/pull/296