Skip to content

Commit

Permalink
add l2n show capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Nov 26, 2023
1 parent 5033d66 commit c195b5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions klayout/python/klive_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit c195b5a

Please sign in to comment.