From c195b5a1914abf92fea2ad8caa1e050d60558119 Mon Sep 17 00:00:00 2001 From: Sebastian Goeldi Date: Sun, 26 Nov 2023 14:17:19 +0100 Subject: [PATCH] add l2n show capabilities --- klayout/python/klive_server.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/klayout/python/klive_server.py b/klayout/python/klive_server.py index fe8362f..0c70a99 100644 --- a/klayout/python/klive_server.py +++ b/klayout/python/klive_server.py @@ -55,8 +55,6 @@ def new_connection(self): # Interpret the data gds_path = data["gds"] - if "lyrdb" in data: - lyrdb_path = data["lyrdb"] # Store the current view window = pya.Application.instance().main_window() @@ -125,6 +123,14 @@ def load_existing_layout(): rdb = pya.ReportDatabase().load(lyrdb_path) rdb_i = view.add_rdb(rdb) view.show_rdb(rdb_i, view.active_cellview().cell_index) + if "l2n" in data: + l2n_path = data["l2n"] + l2n = pya.LayoutToNetlist() + l2n.read(l2n_path) + l2n_i = view.add_l2ndb(l2n) + view.show_l2ndb(l2n_i, view.active_cellview().cell_index) + + else: connection.waitForReadyRead(100)