diff --git a/merge/EBeam_merge.py b/merge/EBeam_merge.py index d26b9ef..30eea16 100644 --- a/merge/EBeam_merge.py +++ b/merge/EBeam_merge.py @@ -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 @@ -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)))