CopperBalance#

class pyedb.workflows.drc.drc.CopperBalance(/, **data: Any)#

Bases: pydantic.BaseModel

Copper density balance constraint.

This rule validates that copper distribution across layers stays within acceptable balance limits to prevent warping during fabrication.

Attributes:
namestr

Rule identifier for reporting violations.

max_percentint

Maximum allowed imbalance percentage (e.g., 15 for 15%).

layerslist of str

Layer names to check for balance.

Examples

>>> rule = CopperBalance(name="top_balance", max_percent=10, layers=["TOP"])
>>> rule.max_percent
10

Overview#

Import detail#

from pyedb.workflows.drc.drc import CopperBalance

Attribute detail#

CopperBalance.name: str#
CopperBalance.max_percent: int#
CopperBalance.layers: list[str]#