Skip to content

Commit

Permalink
check for cell 'top'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Feb 14, 2024
1 parent d4c66c1 commit b995c44
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions merge/EBeam_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def log(text):
break


if 'ebeam' in cell.name.lower() or num_top_cells == 1:
if 'ebeam' in cell.name.lower() or num_top_cells == 1 or cell.name.lower() == 'top':
log(" - top cell: %s" % cell.name)

# check layout height
Expand Down Expand Up @@ -304,14 +304,19 @@ def log(text):
log('')

#export_layout (top_cell, path, filename='EBeam', relative_path='', format='gds')
export_layout (top_cell, path, filename='EBeam', relative_path='', format='oas')
file_out = export_layout (top_cell, path, filename='EBeam', relative_path='', format='oas')
# log("Layout exported successfully %s: %s" % (save_options.format, file_out) )


log("\nExecution time: %s seconds" % int((time.time() - start_time)))

log_file.close()

# Display the layout in KLayout, using KLayout Package "klive", which needs to be installed in the KLayout Application
if Python_Env == 'Script':
from SiEPIC.utils import klive
klive.show(file_out, technology=tech_name)


print("KLayout EBeam_merge.py, completed in: %s seconds" % int((time.time() - start_time)))


0 comments on commit b995c44

Please sign in to comment.