revrt.models.routing.RoutingBarrierLayer#
- class RoutingBarrierLayer(*, layer_name: str, where: str, barrier_importance: int | None = None)[source]#
Bases:
BarrierLayerConfig 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
Name of layer containing barrier candidate values
Comparison expression defining which values act as barriers
Optional positive rank used to relax soft barriers when needed
- where: str#
Comparison expression defining which values act as barriers
Any pixel matching
whereis 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.