DrcResult
Result of running DRC.
Returned by run_drc(). Contains a list of violations and summary statistics
about the check. Use the passed attribute for a quick pass/fail check.
result = run_drc(cell, rules)
if result.passed:
print(f"DRC passed ({result.polygons_checked} polygons, {result.rules_checked} rules)")
else:
print(f"DRC failed with {len(result.violations)} violations")
for v in result.violations:
print(f" {v.message}")Attributes
attributeviolationslist[DrcViolation]List of all DRC violations found.
attributepassedboolTrue if no violations were found.
attributepolygons_checkedintNumber of polygons checked during the DRC run.
attributerules_checkedintNumber of rules evaluated.
attributeelapsed_msfloatElapsed time in milliseconds.