tidy3d.plugins.klayout.DRCResults#
- class DRCResults[source]#
Bases:
Tidy3dBaseModelA class for loading and storing KLayout DRC results.
- Parameters:
violations_by_category (dict[str,
DRCViolation]) – Dictionary of DRC violations by category.
Attributes
A tuple of all DRC categories.
Whether the DRC is clean (no violations).
Tuple of cells that contain at least one violation.
Counts violations by category.
Aggregate violations grouped by cell across all categories.
Methods
load(resultsfile[, max_results])Create a
DRCResultsinstance from a results file.- violations_by_category#
- property is_clean#
Whether the DRC is clean (no violations).
- property violation_counts#
Counts violations by category.
- property violations_by_cell#
Aggregate violations grouped by cell across all categories.
- property violated_cells#
Tuple of cells that contain at least one violation.
- property categories#
A tuple of all DRC categories.
- classmethod load(resultsfile, max_results=None)[source]#
Create a
DRCResultsinstance from a results file.- Parameters:
- Returns:
A
DRCResultsobject containing the DRC results.- Return type:
- Raises:
FileNotFoundError – If the DRC result file is not found.
ET.ParseError – If the DRC result file is not a valid XML file.
Example
>>> from tidy3d.plugins.klayout.drc import DRCResults >>> results = DRCResults.load(resultsfile="drc_results.lyrdb") >>> print(results)