ChecksConfig
Configuration for design checks.
Controls tolerances for port connectivity checks (position, angle, width)
and bend radius validation. Pass to run_checks() to customize checking
behavior.
config = ChecksConfig(
position_tolerance=0.001,
angle_tolerance=0.1,
check_widths=True,
min_bend_radius=5.0,
severity="error",
)
result = run_checks(cell, config=config)Methods
func__init__(position_tolerance=0.001, angle_tolerance=0.1, check_widths=True, min_bend_radius=None, severity='error') -> NoneCreate a new checks configuration.
paramposition_tolerancefloat= 0.001Maximum gap between port centres (in design units) to count as connected. Ports closer than this distance are considered a valid connection.
paramangle_tolerancefloat= 0.1Maximum angular deviation from anti-parallel (in degrees) to count as a valid connection. Two ports must face each other within this tolerance.
paramcheck_widthsbool= TrueWhether to flag width mismatches between connected ports. When enabled, connected ports with different widths generate a violation.
parammin_bend_radiusfloat | None= NoneMinimum allowed bend radius in design units. Set to None to skip bend
radius checking. When set, bends recorded in cell metadata are validated
against this limit.
paramseveritystr= "error"Default severity for violations: "error" or "warning".
Returns
None