Skip to content

Commit

Permalink
Fix of cell load when multiple cells are in DB. (#833)
Browse files Browse the repository at this point in the history
Co-authored-by: maxcapodi78 <Shark78>
  • Loading branch information
maxcapodi78 authored Oct 1, 2024
1 parent afdf399 commit 036d382
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyedb/dotnet/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ def open_edb(self):
for cell in list(self.top_circuit_cells):
if cell.GetName() == self.cellname:
self._active_cell = cell
if self._active_cell is None:
for cell in list(self.circuit_cells):
if cell.GetName() == self.cellname:
self._active_cell = cell
# if self._active_cell is still None, set it to default cell
if self._active_cell is None:
self._active_cell = list(self.top_circuit_cells)[0]
Expand Down

0 comments on commit 036d382

Please sign in to comment.