Skip to content

Commit

Permalink
Update extend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Mar 23, 2024
1 parent eba25af commit 08532fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions klayout_dot_config/python/SiEPIC/extend.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,15 +939,17 @@ def find_components(self, cell_selected=None, inst=None, verbose=False):
- no function for instance.find_components. Instead we find based on cell, then try to match it to the requested instance.
'''

if cell_selected != None and type(cell_selected) != type([]):
cell_selected=[cell_selected]

if verbose:
print('*** Cell.find_components:')
if cell_selected:
print(' - cell_selected=%s' % (cell_selected.name if cell_selected else None))
if cell_selected[0]:
print(' - cell_selected=%s' % (cell_selected[0].name if cell_selected[0] else None))
if inst:
print(' - inst=%s' % (inst.cell.name))

if cell_selected != None and type(cell_selected) != type([]):
cell_selected=[cell_selected]

components = []

Expand Down

0 comments on commit 08532fb

Please sign in to comment.