Skip to content

Commit

Permalink
fix for SiEPIC.scripts.replace_cell()
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Oct 31, 2024
1 parent f8c07d4 commit 3989cc8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions klayout_dot_config/python/SiEPIC/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,9 +3093,9 @@ def replace_cell(layout, cell_x_name, cell_y_name, cell_y_file=None, cell_y_libr

import os
if debug:
print(" - cell replacement for: %s, with cell %s (%s), " % (cell_x_name, cell_y_name, os.path.basename(cell_y_file)))
print(" - cell replacement for: %s, with cell %s (%s or %s), " % (cell_x_name, cell_y_name, cell_y_file, cell_y_library))
log = ''
log += "- cell replacement for: %s, with cell %s (%s)\n" % (cell_x_name, cell_y_name, os.path.basename(cell_y_file))
log += "- cell replacement for: %s, with cell %s (%s or %s)\n" % (cell_x_name, cell_y_name, cell_y_file, cell_y_library)

# Find the cells that need replacement (cell_x)
# find cell name exactly matching cell_x_name
Expand Down Expand Up @@ -3555,7 +3555,10 @@ def __init__(self):
count_fixed_cells += 1
if not found:
print(' - Warning: no fixed GDS/OAS files found for library: %s, in folder: %s' % (library_name, dir_path))

else:
if verbose:
for c in self.layout().top_cells():
print(" - cell: %s" % c.name )

# Create the PCell declarations
if folder_pcell:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 3989cc8

Please sign in to comment.