revrt.models.routing.RoutingBarrierLayer#

class RoutingBarrierLayer(*, layer_name: str, where: str, barrier_importance: int | None = None)[source]#

Bases: BarrierLayer

Config for one hard or soft routing barrier

The rest of this docstring is inserted by Pydantic and can be ignored.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Methods

Attributes

layer_name

Name of layer containing barrier candidate values

where

Comparison expression defining which values act as barriers

barrier_importance

Optional positive rank used to relax soft barriers when needed

layer_name: str#

Name of layer containing barrier candidate values

where: str#

Comparison expression defining which values act as barriers

Any pixel matching where is treated as blocked during routing.

Supported operators are ==, !=, >, >=, <, and <=, followed by a numeric threshold such as ">=15" or "!=0".

Multiple entries may reference the same layer with different "where" definitions.

barrier_importance: int | None#

Optional positive rank used to relax soft barriers when needed

When a route cannot be found, reVRt will iteratively drop the lowest-ranked soft barrier and retry routing until a route is found or all ranked barriers have been removed. If a barrier should never be relaxed, omit this field or set it to None. This allows hard and soft barriers to be combined in the same routing run.