Skip to content

Commit

Permalink
Report available top cells on netlist to networkx error
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosavola committed Apr 8, 2024
1 parent f413ace commit 72a393c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gplugins/klayout/netlist_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def netlist_to_networkx(
),
)
except StopIteration as e:
raise ValueError(f"{top_cell=!r} not found in the netlist.") from e
available_top_cells = [cell.name for cell in top_circuits]
raise ValueError(
f"{top_cell=!r} not found in the netlist. Available top cells: {available_top_cells!r}"
) from e

all_used_nets = set()
for circuit in top_circuits:
Expand Down

0 comments on commit 72a393c

Please sign in to comment.