add_copper_balance#

Rules.add_copper_balance(name: str, max_percent: int, layers: list[str]) Rules#

Append a copper-density balance rule.

Parameters:
namestr

Rule identifier.

max_percentint

Maximum allowed copper imbalance in percent (e.g. 15 for 15%).

layerslist[str]

List of layer names to apply the rule to.

Returns:
Rules

Self to enable method chaining.