diff --git a/klayout_package/python/kqcircuits/defaults.py b/klayout_package/python/kqcircuits/defaults.py index b5de696a5..7aaf1d2ca 100644 --- a/klayout_package/python/kqcircuits/defaults.py +++ b/klayout_package/python/kqcircuits/defaults.py @@ -96,8 +96,6 @@ default_junction_test_pads_type = "Junction Test Pads Simple" default_tsv_type = "Tsv Standard" -default_drc_runset = "example.lydrc" - # Default list of Elements to break down before netlist export. default_netlist_breakdown = [ "Waveguide Composite", diff --git a/klayout_package/python/kqcircuits/masks/mask_export.py b/klayout_package/python/kqcircuits/masks/mask_export.py index 383f0f0cc..a45a19bbb 100644 --- a/klayout_package/python/kqcircuits/masks/mask_export.py +++ b/klayout_package/python/kqcircuits/masks/mask_export.py @@ -133,7 +133,7 @@ def export_chip(chip_cell, chip_name, chip_dir, layout, export_drc, alt_netlists # export drc report for the chip if export_drc: - export_drc_report(chip_name, chip_dir) + export_drc_report(chip_name, chip_dir, export_drc) # delete the static cell which was only needed for export if static_cell.cell_index() != chip_cell.cell_index(): diff --git a/klayout_package/python/kqcircuits/masks/mask_set.py b/klayout_package/python/kqcircuits/masks/mask_set.py index f987fec7e..36af616f9 100644 --- a/klayout_package/python/kqcircuits/masks/mask_set.py +++ b/klayout_package/python/kqcircuits/masks/mask_set.py @@ -62,7 +62,7 @@ class MaskSet: name: Name of the mask set version: Version of the mask set with_grid: Boolean determining if ground grid is generated - export_drc: Boolean determining if DRC report is exported + export_drc: String specifying the DRC file used for exporting the report. Use empty string to ignore DRC report. chips_map_legend: Dictionary where keys are chip names, values are chip cells mask_layouts: list of MaskLayout objects in this mask set mask_export_layers: list of names of the layers which are exported for each MaskLayout @@ -76,7 +76,7 @@ def __init__( name="MaskSet", version=1, with_grid=False, - export_drc=False, + export_drc="", mask_export_layers=None, export_path=TMP_PATH, add_mask_name_to_chips=False, diff --git a/klayout_package/python/kqcircuits/util/export_helper.py b/klayout_package/python/kqcircuits/util/export_helper.py index 216bcf68d..cf0dfb08e 100644 --- a/klayout_package/python/kqcircuits/util/export_helper.py +++ b/klayout_package/python/kqcircuits/util/export_helper.py @@ -35,7 +35,6 @@ default_probe_suffixes, recommended_probe_suffix_mapping, VERSION_PATHS, - default_drc_runset, DRC_PATH, ) from kqcircuits.klayout_view import KLayoutView, MissingUILibraryException @@ -452,7 +451,7 @@ def get_klayout_version(): return pya.Application.instance().version() -def export_drc_report(name, path, drc_script=default_drc_runset): +def export_drc_report(name, path, drc_script): """Run a DRC script on ``path/name.oas`` and export results in ``path/name_drc_report.lyrdb``.""" drc_runset_path = os.path.join(DRC_PATH, drc_script)